How can I Open and Close Popup windows without Javascript in ASP.NET?
-
do you mean modal dialog boxes?Russ Cam– Russ Cam2009-12-08 09:05:11 +00:00Commented Dec 8, 2009 at 9:05
-
Yes. My application has lot of dialog boxes and I want to open and close from button clicks as a windows applicationSauron– Sauron2009-12-09 04:07:57 +00:00Commented Dec 9, 2009 at 4:07
3 Answers
What do you mean "Popup windows".
JavaScript allows you to manipulate the properties of a window object allowing you to remove the status bar, address bar, set the size and position of the new window and other things.
The only other way (short of using VB script :) is to have links with target set to _blank. But then you can't customise the new window.
1 Comment
Unless otherwise but I conquer with @Olivier that you can't do that without using Javascript. Even with the solution given by @Avi, you are still using Javascript though it is kinda abstracted from you.
Maybe, you could explain why you don't want to use javascript because even without the AjaxControl, it is kinda pretty easy to open and specify other properties of pop up windows.