469,609 Members | 1,178 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 469,609 developers. It's quick & easy.

Modal dialog

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;
Nov 18 '05 #1
2 943
"mac" wrote:
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

- - -
Nov 18 '05 #2
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

"mac" <ma*****@ua.fm> wrote in message
news:%2****************@tk2msftngp13.phx.gbl...
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;

Nov 18 '05 #3

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

2 posts views Thread by Patrick Lim | last post: by
2 posts views Thread by martin de vroom | last post: by
2 posts views Thread by Gilles T. | last post: by
2 posts views Thread by cassidyc | last post: by
3 posts views Thread by Earl Teigrob | last post: by
10 posts views Thread by Guadala Harry | last post: by
2 posts views Thread by sthrudel | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.