borderAndreaVB free resources for Visual Basic developersborder

borderAndreaVB Visual Basic and VB.NET source code resources - Copyright © 1999-2010 Andrea Tincaniborder

AndreaVB | Forum | News | Downloads | Register | Help | Member List | Statistics | Search | PM | Profile

Print This Topic
Previous Topic (make tree view of all menues on the form)Next Topic (help me) New Topic New Poll Post Reply
AndreaVB Forum : C# : Diff between window.open and window.showmodaldailog
Poster Message
Kiran0309
Level: Trainee

Registered: 12-03-2009
Posts: 1

Ads by Lake Quincy Media
icon Diff between window.open and window.showmodaldailog

Hi,
I want to know the difference between Window.open and Window.showmodaldailog. I have worked on this but both are doing the same task i.e open a Page.
Can anyone give some idea about this topic...
Thanks in advance.

Ads by Lake Quincy Media
12-03-2009 at 07:26 AM
View Profile Send Email to User Show All Posts | Quote Reply
Suresh0309
Level: Trainee

Registered: 12-03-2009
Posts: 1
icon 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]

12-03-2009 at 07:35 AM
View Profile Send Email to User Show All Posts | Quote Reply
AndreaVB Forum : C# : Diff between window.open and window.showmodaldailog
Previous Topic (make tree view of all menues on the form)Next Topic (help me) New Topic New Poll Post Reply
Surf To:


Not Logged In? Username: Password: Lost your password?
Partners: Download Actual Software | Free Software Download
borderAndreaVB free resources for Visual Basic developersborder

borderAndreaVB Visual Basic and VB.NET source code resources - Copyright © 1999-2010 Andrea Tincaniborder