Take the 2-minute tour ×  I have a button, that opens Modal
Dialog using SP.UI.ModalDialog.showModalDialog(options) Options
contains field "args".  I can read this "args" using
window.frameElement.dialogArgs in javascript code of Dialog
Page.  But i need to read this args in codebehind in methods
like OnLoad, or OnPreRender.  I tried to save args to
hiddenValue, but javascript is executing after OnPreRender.
share|improve this question add comment  2 Answers  You can do
this by using a method similar to the one described here
http://social.msdn.microsoft.com/Forums/en-
us/iewebdevelopment/thread/126fcea8-c28b-49ce-ad49-65884ffabeb6
Basically you open up an iframe pointing to about:blank. Then
you create a new form that posts to the page you want to post
to, along with a input value containing your data and targets
your blank iframe. Then you submit the form.  Here's a sample
function that does just that. Note that because of a bug with ie
and dynamically renamed iframes, you have to remove and add the
iframe