Pallavi Anand
Pallavi Anand

Reputation: 11

how to add popup window in asp.net web form

I want to add a popup window which is a child window of my main asp.NET form. This window accepts the information through drop down list selected by the user. When this window is opened the focus will go to this window and main window will disable.

Upvotes: 0

Views: 5668

Answers (1)

Shafeeq Koorimannil
Shafeeq Koorimannil

Reputation: 724

Use showModalDialog for opening the popup window.

window.showModalDialog("childpage.aspx", "", "center:yes;resizable:no;dialogHeight:480px;dialogWidth:750px;");

This will make parent page disabled in IE.

Upvotes: 2

Related Questions