c# - scroll/move the page to the top after page postback from button click? -
i have button validates username(have username textbox @ bottom of page) on server side, , if username doesnot exist in database return , give error @ top of page throgh label. inside button click need write code if username doesnot exists scroll page top.
how can this?
thanks
after post-back, page typically scrolls top. if not, has done in javascript. can use ilya posted: http://www.electrictoolbox.com/jquery-scroll-top/.
Comments
Post a Comment