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
 
Back
Top