Results 1 to 3 of 3

Thread: [RESOLVED] Window.showModalDialog JS and doing a post back on the modal form.

  1. #1

    Thread Starter
    Super Moderator Wokawidget's Avatar
    Join Date
    Nov 2001
    Location
    Headingly Occupation: Classified
    Posts
    9,632

    Resolved [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....

    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

  2. #2
    Member EricDalnas's Avatar
    Join Date
    Sep 2004
    Location
    Rhode Island
    Posts
    51

    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.
    Maybe if you'd stop breathing and die for a change I wouldn't be so pissed off all the time.

    www.mredkj.com

  3. #3

    Thread Starter
    Super Moderator Wokawidget's Avatar
    Join Date
    Nov 2001
    Location
    Headingly Occupation: Classified
    Posts
    9,632

    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

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width