Re: Differences between window.open and window.showmodaldailog
For example, we will take 2 pages. One is Parent and it contains a button to open a pop up window, and other one is our Pop up page.
If I used showModalDailog, the page execution is like this:
Arrow When we click the button in Parent page, It will opens the Pop Up window.
Arrow When we click close button of the pop up window, then It will execute the Parent Pages Button Click Event.
Arrow Advantages of window.showModalDailog :
If we want to add some list items (dynamically from a table) to dropdownlist, We can use this concept. For this we will place a button besides the dropdownlist. By using the button's Onclientclick event we will open a pop up window where the user can enter List Items. After closing this page, It will comes automatically to Parents page Button Click Event, Here we will rebind the dropdownlist.
It will works good in Internet Explorer(IE) Only.
visit this website for latest and updated posts www.dotnetexpertsforum.com information
[Edited by Suresh0309 on 12-03-2009 at 10:49 AM GMT]
[Edited by Suresh0309 on 13-03-2009 at 02:50 AM GMT]