 <p>Have you considered using the <a href="http://msdn.microsoft.com/en-us/library/system.web.httpserverutility.transfer%28v=vs.100%29.aspx" rel="nofollow">Server.Transfer</a> to redirect the query to the required url?</p> <p>Simply use</p> <pre><code>Server.Transfer("Page2.aspx", true); </code></pre>