[RESOLVED] Window.showModalDialog JS and doing a post back on the modal form.
If you pop a window up using Window.showModalDialog in JS then you cannot add code behind button clicks....:confused:
What happens it when the forms posts back to the server to do stuff it reopens a new instance of the form, and doesn't use the same one. So you end up with a modal instance of Login.aspx, and a normal, non modal, Login.aspx.
This is very strange, and a really kick in the teeth. Anyone got any ways of fixing this?
Would remoting be the only way?
Woka
Re: Window.showModalDialog JS and doing a post back on the modal form.
Are you sure it isn't an issue related to this -
http://www.mredkj.com/vbnet/pageloadnotfiring.html
sorry I couldn't be of more help.
Re: Window.showModalDialog JS and doing a post back on the modal form.
Sorry, I fixed this a few hours after my post. Bad me for not posting an answer *SLAP*
That's for your reply.
This is how I did it:
Code:
<HEAD>
<TITLE>AddInternal</TITLE>
<META content="Microsoft Visual Studio .NET 7.1" name="GENERATOR">
<META content="Visual Basic .NET 7.1" name="CODE_LANGUAGE">
<META content="JavaScript" name="vs_defaultClientScript">
<META content="http://schemas.microsoft.com/intellisense/ie5" name="vs_targetSchema">
<LINK href="/resource/css/aquserv.css" rel="stylesheet">
<BASE target="_self">
</HEAD>
I added the <Base Target="_self"> tag.
Woka