开发者

Radiobuttonlist and load page in same initial position

开发者 https://www.devze.com 2023-01-03 14:28 出处:网络
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 fr

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

0

精彩评论

暂无评论...
验证码 换一张
取 消