Accessing showModalDialog argument on server side

  • Thread starter Thread starter IAmSoNeat
  • Start date Start date
I

IAmSoNeat

The showModalDialog has an argument parameter that will allow the
modaldialog to access it through the client side property:
dialogArguments.

Is there any way to access this property on the server-side?

I currently do nothing if IsPostBack is false and then on the
client-side during the onload event for the body I create a hidden
field with a value of the dialogArguments and then repost the page.
This is annoying.

Is there a way to do it without reposting the page?

Thanks in advance
 
place in the url when you do the window open:

window.showModalDialog (url + '?arg=' + escape(argvalue));


-- bruce (sqlwork.com)
 
I think you're probably doing it about the best way. Remember that web
pages are disconnected and the only way to get something back to the server
is the bane of high performance ASP.Net - the postback.

Other alternatives might include frames or iframes but that may be even more
difficult to handle than what you're doing now.

Dale
 
Back
Top