Reload page with new parameters
<p>I have a popup window and when I click a button it will close that window and reload the parent window with new parameters.  For example the url is <code>page.apsx?id=oldparameter</code>, the parent reloaded with new parameter like <code>page.aspx?id=newparameter</code></p>

<p>I have something like: </p>

<pre><code>object newparameter = r[“id”];
string url = “~/page.aspx?id=” +newparameter ;
</code></pre>

<p>Then I tried this:</p>

<pre><code>Response.Write("&lt;script  language='javascript'&gt; {window.opener.document.forms[0].elements['id'].value = '" + url + "'; top.close();}&lt;/script&gt;");
</code></pre>

<p>But it doesn’t work.  Can somebody show me how to do this?  Thank you very much.</p>
