I have this simple code in my page, I have a long page, if the client use this button then it shall reload the page and display the page from the beginning. I wish to be reload the page and display from the last position.
<asp:RadioButtonList ID="RadioButtonList5" runat="开发者_开发问答server" AutoPostBack="True"
RepeatDirection="Horizontal">
<asp:ListItem Value="45">Sheet2</asp:ListItem>
</asp:RadioButtonList>
Any advice, apprciated. Thank you.
You can use
MaintainScrollPositionOnPostback
inside the @Page directive
See Page.MaintainScrollPositionOnPostBack Property
精彩评论