problem with window scrolling with asp.net button control
<p>In web application, i tried scrolling the window vertically by increasing a y axis height to 500 with a javascript that is attached to OnClientClick event of a asp.net button control with id Button1.</p>

<p>The script i have used is</p>

<pre><code>&lt;script language="JavaScript"&gt;

function scrollToWindow()
{
  window.scrollTo(0,500);
}

&lt;/script&gt;
</code></pre>

<p>and the button code is as follows</p>

<pre><code>&lt;asp:Button ID="Button1" runat="server" 
Text="Scroll to bottom" OnClientClick="scrollToWindow()" /&gt;
</code></pre>

<p>If i run this page and click that button, the page scroll is not working properly. when i put alert inside that script and debug, i found that the page is actually scrolling to 0,500 but again its rendering to its normal position because of some reasons. could someone help to overcome this issue and let me know the reason behind that??</p>
