asp:linkbutton (navigating to specific page section on post back)
<p>I have some linkbuttons to update my gridview which is in the middle of the page. Everytime I hit edit or delete etc the window scrolls to the top on the page that gets posted back. I want it to stay focused on the grideview. I have tried a javascript function but for some reason it did not work.</p>

<p>(edit: the following works as far as scrolling is concerned but prevents postback)</p>

<p>here is what I tried</p>

<pre><code>&lt;script type="text/javascript" language="javascript"&gt;  

    function goto()   {   

         window.scrollTo(10, 1100);   

    }   

&lt;/script&gt;

&lt;asp:LinkButton ID="lbtnGo" runat="server"   OnClientClick="javascript:goto();return false;"&gt;GO&lt;/asp:LinkButton&gt; 
</code></pre>

<p><a href="http://forums.asp.net/p/441243/3647829.aspx" rel="nofollow">source</a></p>

<p>How can I do this?</p>
