Click here to Skip to main content
16,014,748 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
Hi.. I am using Visual-Studio 2010.. i have a problem in maintaining scroll position on page-load. can any help me
Posted
Updated 30-Dec-10 23:40pm
v3
Comments
#realJSOP 31-Dec-10 5:30am    
Are you talking about a web site you're developing? If so, you should change your tags to include ASP.Net.

set MaintainScrollPositionOnPostback to true in @ Page Directive
 
Share this answer
 
Page_load(object sender,EventArgs e)
{
this.MaintainScrollPositionOnPostBack=true;
if(!isPoStBack)
{
//form populate code here
}
}
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900