How do I make the form stay at the same place after the page is postback?

danyeungw

Well-known member
Joined
Aug 30, 2005
Messages
73
Programming Experience
10+
If a control with AutoPostBack set to true is at the bottom of the webform, how can I make the form stay at the bottom after the control is clicked and the page is postback? I am using .NET 1.1.

Thanks.
DanYeung
 
Last edited:
In .NET 1.1, use the SmartNavigation property of the page. Note that this only works in Internet Explorer, V5 and greater.

The equivalent in ASP.NET 2.0 is the Page.MaintainScrollPositionOnPostBack Property which works for most common browsers.
 
Back
Top