Update HiddenFiled value on parent window after child window is close Javascript,VS2005 c#
<p>I have a child window and a parent window with a hiddenfield hdnSelectedFields .I am changing the value of hdnSelectedFields.</p>

<p>Code:</p>

<pre><code>String vStrScript = "&lt;script language=javascript&gt;function CloseParent() {window.opener.document.getElementById('hdnSelectedFields').Value = '" + tempstring + "'; alert(window.opener.document.getElementById('hdnSelectedFields').Value);window.close(); } window.opener.document.forms[0].submit(); setTimeout(CloseParent, 5);&lt;/script&gt;";
</code></pre>

<p>When I close the window the hdnSelectedFields value is set but when I access the hdnSelectedFields on parent window pageload it shows old value of hdnSelectedFields.</p>

<p>if you see the alert in JavaScriptit shows updated hdnSelectedFields value when parent is loaded completed.</p>

<p>Any suggestion how can I access hdnSelectedFields updated value on parent pageload.</p>

<p>Dee</p>
