that specific IE browser window.
Dale
"Mark Goldin" <markgoldin@.comcast.net> wrote in message
news:%23B30y8mZEHA.2340@.TK2MSFTNGP09.phx.gbl...
> What is a best way to create modal forms in ASP.NET?
How do I execute that code on a server side?
"DalePres" <don-t-spa-m-me@.lea-ve-me-a-lone--.com> wrote in message
news:eTfHmonZEHA.3476@.tk2msftngp13.phx.gbl...
> For IE, using window.showModalDialog() will create a dialog that is modal
to
> that specific IE browser window.
> Dale
> "Mark Goldin" <markgoldin@.comcast.net> wrote in message
> news:%23B30y8mZEHA.2340@.TK2MSFTNGP09.phx.gbl...
> > What is a best way to create modal forms in ASP.NET?
You cannot execute that code from server side. Server code is not allowed to
open new IE window on the client (otherwise, the bad guys would make their
web site keep poping up new windows until the client computer crach). You do
it through client side script.
Say, you have a button (server control) on the page, on Pare_Load event
handler, you can attach client script like this:
btnOpenDialog.Attribute.Add("onclick","window.showModalDialog('MyDialogPage.
html')");
Or
btnOpenDialog.Attribute.Add("onclick","OpenMyDialog()");
Of course in latter case, you need to write a javascript functioncalled
OpenMyDialog() in the page's HTML source.
"Mark Goldin" <markgoldin@.comcast.net> wrote in message
news:eUV8bQtZEHA.2520@.TK2MSFTNGP12.phx.gbl...
> How do I execute that code on a server side?
> "DalePres" <don-t-spa-m-me@.lea-ve-me-a-lone--.com> wrote in message
> news:eTfHmonZEHA.3476@.tk2msftngp13.phx.gbl...
> > For IE, using window.showModalDialog() will create a dialog that is
modal
> to
> > that specific IE browser window.
> > Dale
> > "Mark Goldin" <markgoldin@.comcast.net> wrote in message
> > news:%23B30y8mZEHA.2340@.TK2MSFTNGP09.phx.gbl...
> > > What is a best way to create modal forms in ASP.NET?
> >
<in the page's HTML source.
Can it be stored in JS file?
"Norman Yuan" <normanxy@.telus.net> wrote in message
news:ZLeIc.15147$iw3.6019@.clgrps13...
> You cannot execute that code from server side. Server code is not allowed
to
> open new IE window on the client (otherwise, the bad guys would make their
> web site keep poping up new windows until the client computer crach). You
do
> it through client side script.
> Say, you have a button (server control) on the page, on Pare_Load event
> handler, you can attach client script like this:
>
btnOpenDialog.Attribute.Add("onclick","window.showModalDialog('MyDialogPage.
> html')");
> Or
> btnOpenDialog.Attribute.Add("onclick","OpenMyDialog()");
> Of course in latter case, you need to write a javascript functioncalled
> OpenMyDialog() in the page's HTML source.
> "Mark Goldin" <markgoldin@.comcast.net> wrote in message
> news:eUV8bQtZEHA.2520@.TK2MSFTNGP12.phx.gbl...
> > How do I execute that code on a server side?
> > "DalePres" <don-t-spa-m-me@.lea-ve-me-a-lone--.com> wrote in message
> > news:eTfHmonZEHA.3476@.tk2msftngp13.phx.gbl...
> > > For IE, using window.showModalDialog() will create a dialog that is
> modal
> > to
> > > that specific IE browser window.
> > > > Dale
> > > > "Mark Goldin" <markgoldin@.comcast.net> wrote in message
> > > news:%23B30y8mZEHA.2340@.TK2MSFTNGP09.phx.gbl...
> > > > What is a best way to create modal forms in ASP.NET?
> > > > > >
0 comments:
Post a Comment