Click here to Skip to main content
15,887,676 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
i am using the asp.net adrotator. i have placed it in the ajax update panel along with the timer. the problem is that when when the timer updates, and i am vertically scrolling down the page or have just finished vertically scrolling, the page refreshes to where it was previously. how can i get it to update and have the page remain in the same place? thank you in advance.
Posted

1 solution

Add MaintainScrollPositionOnPostback="true" to page directive. This will keep your page at the position you scrolled after postback

<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="CourseSubject.aspx.cs" Inherits="BBCApplication.Students.CourseSubject"  MasterPageFile="~/Site2.Master" MaintainScrollPositionOnPostback="true"%>
 
Share this answer
 
Comments
bulbus aramus 19-Sep-10 6:41am    
i tried this and it doesn't work. any other suggestions?

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