Friday, March 16, 2012

Modal Windows Server side processing

When I open a modal window using 'showModalDialog' from an aspx page it work
s fine. But when I then perform a submit in my modal window to get data from
the server, instead of the page returning to the modal window with the new
data the server creates a n
ew, non-modal, window - leaving the modal window in the state it was and ano
ther, unrelated copy open with the requested data in it.
Can I get the data to return to the original modal window from the server wi
thout it opening a new (unwanted) window?
This is for a search that is intended to return data back to the original pa
rent window after searching is complete.Not sure if this will work, but could you set the target of your form to
be the original parent window this should result in the data being sent
straight back to the original parent window.
Matt
"CaptainZ" <anonymous@.discussions.microsoft.com> wrote in message
news:1F530098-CBB4-4603-A420-5C1520E22E12@.microsoft.com...
> When I open a modal window using 'showModalDialog' from an aspx page
it works fine. But when I then perform a submit in my modal window to
get data from the server, instead of the page returning to the modal
window with the new data the server creates a new, non-modal, window -
leaving the modal window in the state it was and another, unrelated copy
open with the requested data in it.
> Can I get the data to return to the original modal window from the
server without it opening a new (unwanted) window?
> This is for a search that is intended to return data back to the
original parent window after searching is complete.

0 comments:

Post a Comment