Opening New Windows

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?
 
J

Jon Skeet [C# MVP]

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.
 
P

Peter Bromberg [C# MVP]

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
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top