开发者

Jump to Anchor from CodeBehind without repost

开发者 https://www.devze.com 2022-12-14 06:26 出处:网络
Is there a way to append an anchor (test.aspx#23432) in the codebehind to the end of my current location in my address 开发者_StackOverflowbar without using Response.Redirect()?Once you are in your co

Is there a way to append an anchor (test.aspx#23432) in the codebehind to the end of my current location in my address 开发者_StackOverflowbar without using Response.Redirect()?


Once you are in your code behind, you are already in a repost, so the short answer is no. You can change your button/link to a regular html control that appends the anchor without doing a postback

<a href="#23432">Click Here</a>
0

精彩评论

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