Thursday, March 22, 2012

Modal dialog

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" 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

- - -
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" <mactemp@.ua.fm> wrote in message
news:%23XCBIqDWEHA.2716@.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;

0 comments:

Post a Comment