Suresh0309 Level: Trainee
 Registered: 12-03-2009 Posts: 1
|
Re: Differences between window.open and window.showmodaldailog
Hi Kiran,
Both are used in javascript to open a window as pop up. But the main difference is only the page execution between parent and child Page.
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
Thank You
Suresh
[Edited by Suresh0309 on 12-03-2009 at 10:49 AM GMT]
[Edited by Suresh0309 on 13-03-2009 at 02:50 AM GMT]
|