Modal dialog

  • Thread starter Thread starter mac
  • Start date Start date
M

mac

Is there any way to create control that displays my web page in (modal)
dialog window and returns value when closed?Like in Winforms.

like:
DialogWindow t = new DialogWindow("mypage.aspx");
t.Show();
return t.MyVariable;
 
mac said:
Is there any way to create control that displays my web page in (modal)
dialog window and returns value when closed?Like in Winforms.

Yes, but only on IE. Look up "window.showModalDialog" in your MSDN.

Steven

- - -
 
The show part is easy. The control will have to emit client-side javascript
call to showModalDialog(...);
For return part you will have to make client code for getting return value
when the window closes and to fire a server-side event.

Eliyahu
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Similar Threads

session timeout warning problem 0
Modal Window 1
Modal dialog in web application 2
Posting from a modal dialog 4
postback and viewstate 3
modal popup window help 5
Show Modal Dialog in IE 5 1
Modal Dialog 1

Back
Top