When a asp.net button is clicked, add #button to the url

Posted by Blankman on Stack Overflow See other posts from Stack Overflow or by Blankman
Published on 2010-05-13T14:31:08Z Indexed on 2010/05/13 14:34 UTC
Read the original article Hit count: 236

Filed under:
|
|

Using jquery, when a button is clicked (server side), I want to append #button to the url.

This will only be used when there is validation errors, I want the browser to scroll to the bottom where the button is.

I already tried MaintainScrollPositionOnPostback but it doesn't work here since the validation rows are made visible upon clicking the button.

© Stack Overflow or respective owner

Related posts about jQuery

Related posts about ASP.NET