Opening New Windows

  • Thread starter Thread starter Jeremy Ames
  • Start date Start date
J

Jeremy Ames

rePost:

I am using C# to develop my ASP.Net applications. I am trying to figure out
how to open new window with specific attributes such as size and window
components to show. I have not seen any examples in the documentation on how
to do this. Can someone please help?

revision:
Can this be done with C# and not JavaScript?
 
Jeremy Ames said:
I am using C# to develop my ASP.Net applications. I am trying to figure out
how to open new window with specific attributes such as size and window
components to show. I have not seen any examples in the documentation on how
to do this. Can someone please help?

revision:
Can this be done with C# and not JavaScript?

Think about it from the browser's point of view - the browser won't run
any of your C# code. Basically, if you can't produce a static set of
HTML files which do what you want (but don't give any dynamic values,
of course), you won't be able to do it from ASP.NET.
 
Jeremy,
You can do it with C# but essentially you would be using C# under the
ASP.NET Page class to write out the script that the browser understands.
For example , "showModalDialog" is a script method that is understood by the
browsers Javascript parser, but you would only be using C# to write this out
to the browser using say, the Page.RegisterClientcriptBlock method.
Peter
 
Back
Top