Accessing showModalDialog argument on server side

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
 
B

bruce barker

place in the url when you do the window open:

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


-- bruce (sqlwork.com)
 
D

Dale

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
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top