title: Sharepoint Modal - pass values using options and read from server
body: <p>I am using Sharepoint dialogs.</p>
  
  <p>I have followed this article to pass values to the dialog:
  <a href="http://online.appdev.com/edge/blogs/doug_ware/archive/2010/09/25/passing-values-from-a-list-custom-action-to-server-code.aspx" rel="nofollow">http://online.appdev.com/edge/blogs/doug_ware/archive/2010/09/25/passing-values-from-a-list-custom-action-to-server-code.aspx</a></p>
  
  <p>this suggests to use read values usingwindow.top.g_childDialog.get_args() &amp; storing the value as JSON in a hidden field, so that they can than be read by server code.</p>
  
  <p>I managed to make this work. </p>
  
  <p>However my problem is that I need to use this value from the server side immediately and having to pass this value from the client to the server.</p>
  
  <p>As a I work around, I am doing a __doPostBack to go back to the server (after setting the hidden field), &amp; in the server code, I read the data from the input field.</p>
  
  <p>However, there is clearly a performance issue here as I am doing an extra postback.</p>
  
  <p>Is there a way to read the options immediately from the server rather than from Javascript.</p>
  
  <p>I know that you can use the query string (rather than options) but I have a relatively large amount of data that I need to pass and I do not want to use query string.</p>
  
  <p>Any help would be greatly appreciated.</p>
  
  <p>Thanks!</p>