Avoid hidden field in the web forms
<p>I have a web page and a modal dialog page. On clicking the save button in the show modal dialog. closes the window and returns a value. Now when the 
control reaches the JavaScript function of the parent window . I wnt to perform some database operation on the basis of this returned ID. </p>

<p>I am using the following approach to utilize this returned value.</p>

<ol>
<li>Keeping it in the hidden field and populating the returned value in hidden control.</li>
<li>keeping a hidden button in the parent window, performing the click event when control comes back to JavaScript function of the parent page. Thus in the server side button handler get the value from hidden field and perform database operation on the basis of returned value.</li>
</ol>

<p>Is this approach fine. Or I can get rid of hidden field</p>
