"Mark Goldin" <ma********@comcast.net> wrote in message
news:OD**************@TK2MSFTNGP11.phx.gbl...
I have main aspx page with a button that will show a modal
dialog in the Browser when a user clicks on the button.
On the modal form the user will do some selections.
The he will submit his selections to the server via a postback.
How can I take these selections to the main page?
I have been struggling with the same problem recently and have come to the
conclusion that I need to rethink the whole architecture for the following
reaons:
1) AFAIK, window.showModalDialog(...) will only work for IE so, if you're
writing a public-facing site, you're going to run into severe cross-browser
issues.
2) It is possible to return only one value to the main form using the var
intReturnValue = window.showModalDialog(...) / window.returnValue
functionality so, if you need to return multiple values, pretty much your
only option is to use Session variables.
3) When you submit a modal dialog, it will launch a new browser instance
unless you enclose it in an iframe - again, this may not be supported in
certain browsers.