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? thanksHi,
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
"Brian Henry" <brianiupmsdn@.newsgroups.nospam> wrote in message
news:e8d%23CrjYEHA.2812@.TK2MSFTNGP11.phx.gbl...
> 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,
simply in the modal window put this to the <HEAD>
<BASE target="_self">
Teemu Keiski
MCP, Microsoft MVP (ASP.NET), AspInsiders member
ASP.NET Forum Moderator, AspAlliance Columnist
http://blogs.aspadvice.com/joteke
"Brian Henry" <brianiupmsdn@.newsgroups.nospam> wrote in message
news:e8d%23CrjYEHA.2812@.TK2MSFTNGP11.phx.gbl...
> 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
>
thanks that worked great!
"Teemu Keiski" <joteke@.aspalliance.com> wrote in message
news:ueFTD1nYEHA.4008@.TK2MSFTNGP09.phx.gbl...
> Hi,
> simply in the modal window put this to the <HEAD>
> <BASE target="_self">
> --
> Teemu Keiski
> MCP, Microsoft MVP (ASP.NET), AspInsiders member
> ASP.NET Forum Moderator, AspAlliance Columnist
> http://blogs.aspadvice.com/joteke
>
> "Brian Henry" <brianiupmsdn@.newsgroups.nospam> wrote in message
> news:e8d%23CrjYEHA.2812@.TK2MSFTNGP11.phx.gbl...
> it
> have
> button
> modal
>
Subscribe to:
Post Comments (Atom)
0 comments:
Post a Comment