Setting focus on top of the page on click of asp.net link button
<p>I've a asp.net datagrid which shows customer order details.
Pagination at the bottom of the grid is done using datalist and asp.net Linkbutton controls.
Here is the code:</p>

<pre><code> &lt;asp:DataList ID="DataList2" runat="server" CellPadding="1" CellSpacing="1" OnItemCommand="DataList2_ItemCommand"
                                        OnItemDataBound="DataList2_ItemDataBound" RepeatDirection="Horizontal"&gt;
                                        &lt;ItemTemplate&gt;
                                            &lt;asp:LinkButton ID="lnkbtnPaging" runat="server" CommandArgument='&lt;%# Eval("PageIndex") %&gt;'
                                                CommandName="lnkbtnPaging" Text='&lt;%# Eval("PageText") %&gt;'&gt;&lt;/asp:LinkButton&gt;
                                            &lt;asp:Label runat="server" ID="lblPageSeparator" Text=" | " name=&gt;&lt;/asp:Label&gt;
                                        &lt;/ItemTemplate&gt;
                                    &lt;/asp:DataList&gt;
</code></pre>

<p>When the user clicks on any page number(ie.Link button), I need to set focus on top of the page.
How do i do this?</p>

<p>Thanks!</p>
