The problem with ShowModalDialog is cross browser
compatability. That is the
reason overlays are good as it supports IE, FireFox,
Safari.
On Wed, Jun 4, 2008 at 12:02 AM, Viveiros George NPRI <
ViveirosG npt.nuwc.navy.mil> wrote:
> I have code that puts up a modal popup. It does not
affect the look of the
> parent form but it does prevent the user from doing
anything before
> answering the popup.
>
> George
> ================ Here is the code
> In form onLoad() of the parent form
>
>
btnYourButton.Attributes.Add("onclick",
>
"theJavaScriptvariable=showModalDialog('Popup.htm','',&
quot; & _
> "'dialogTop:150;
dialogHeight:245px; dialogWidth:273px;
> status:no; resizable:no; scroll:no');" & _
>
>
"document.getElementById('tbxYourTextBoxName').innerTex
t=theJavaScriptvariable")
>
> In the popup return the value like this:
>
> window.returnValue = retVal;
> window.close();
> ========================================
>
> your code is server-side. I think she wants to still
see the form, but
> just lock it so it displays a modal dialog-like
display.
>
>
>
> ________________________________
>
> From: mallard mallard-design.com
> To: aspnet aspadvice.com
> Subject: [aspnet] RE: Modal popup
> Date: Mon, 2 Jun 2008 16:09:10 -0700
>
>
> Did you try to set CType(Me.Parent,
HtmlForm).Visibility=False (vb)
> or that idea in code behind in page_onload() for the
popup?
>
> It can't close it without a warning popup in IE
... not sure this
> works, never tried it but seems it should since code
behind should be aware
> of the form object since you're just setting a
property.
>
> hth,
>
> tom mallard
> .net web applications
> consumer product design
>
>
>
> ________________________________
>
> From: tjc_tek hotmail.com
> To: aspnet aspadvice.com
> Subject: [aspnet] RE: Modal popup
> Date: Mon, 2 Jun 2008 11:44:42 -0400
>
> see http://en.wiki
pedia.org/wiki/Lightbox_(JavaScript)
>
>
> > Date: Fri, 30 May 2008 18:40:20
+0530
> > From: rashidakoita gmail.com
> > Subject: [aspnet] Modal popup
> > To: aspnet aspadvice.com
> >
> > Need help in ASP.NET2.0 and AJAX
> > Need a modal popup which will
disable the parent form.
> There needs to be a
> > tranaprent effect on the parent
form when the popup opens.
> Only when the
> > user closes the popup the parent
form should be
> accessible.
> >
> > Today u help me, who know tomorrow
u may need my help
> >
> >
> > Regards,
> > Rashida
> >
> >
> >
> > --- List Settings ---
> > http://aspadvice.com/list
s/
> >
>
>
>
> ________________________________
>
> E-mail for the greater good. Join the
i'm Initiative from
> Microsoft. <
> http://im.live.com/Messenger/IM/J
oin/Default.aspx?source=EML_WL_GreaterGood> --- List
Settings ---
> http://aspadvice.com/list
s/
>
>
> --- List Settings ---
> http://aspadvice.com/list
s/
>
>
>
> ________________________________
>
> Enjoy 5 GB of free, password-protected online storage.
Get Windows Live
> SkyDrive. <
> http://www.window
slive.com/skydrive/overview.html?ocid=TXT_TAGLM_WL_Refresh_s
kydrive_062008>
> --- List Settings --- http://aspadvice.com/list
s/
>
>
> --- List Settings ---
> http://aspadvice.com/list
s/
>
>
--- List Settings ---
http://aspadvice.com/list
s/
|