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

Popular posts from this blog

python - Scipy curvefit RuntimeError:Optimal parameters not found: Number of calls to function has reached maxfev = 1000 -

c# - How to add a new treeview at the selected node? -

java - netbeans "Please wait - classpath scanning in progress..." -