Friday, July 10, 2009
maintain scrollposition after post back?
12:54 PM |
Posted by
Sheen |
Edit Post
By default a web page will be returned to the top of the page, after a postback. What if you want to take back to the position where user was before the postback , it's simple. You can do one of the followings.
In the web.config add the attribute to the pages node.
In the HTML (.ASPX)
< %@ Page Language="C#" MaintainScrollPositionOnPostback = "true"
and you can set this in
3.CODE (ASPX.SC)
Page.MaintainScrollPositionOnPostBack = true;
That's all you have to do. You will be back to where you were.
Subscribe to:
Post Comments (Atom)
Blog Archive
Important Blogs
-
-
Git Workflow For Enterprise development6 years ago
-
-
Watch Live Cricket Online Free14 years ago
-
-
-
0 comments:
Post a Comment