modal forms and postback

  • Thread starter Thread starter Brian Henry
  • Start date Start date
B

Brian Henry

Hi, is there a way to get a form to post back to a modal dialog box when it
was posted from a modal dialog to start with? here is the problem... I have
a form with combo boxes and when you select one then click on an add button
it adds the item to a list box, but when you click on add (this is in a
modal dialog box) it opens the postback in a new window outside of the modal
dialog box, how do you force it to postback to the modal dialog? thanks
 
Hi,

Yes. it well Known behaviour of model windows. in order to work around
put IFrame in your model window and place all previous model HTML inside
IFrame. now, on postback no new window will be open.

HTH

Natty Gur[MVP]

blog : http://weblogs.asp.net/ngur
Mobile: +972-(0)52-8888377


*** Sent via Devdex http://www.devdex.com ***
Don't just participate in USENET...get rewarded for it!
 
I am using the following trick in modal windows with postback:

<body>
<!-- Set window name for the form to be loaded in the same window after
round trip -->
<script language="javascript">window.name="modal";</script>
<form id="myForm" method="post" runat="server" target="modal">

Eliyahu
 
Back
Top