Click here to Skip to main content
15,881,852 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
See more:
Prevent aspx page jumping to the top portion under button click..I have set update panel but triggers are given for fileupload and few other given...Hence post back occurs....But still i want the aspx page to remain where it is...
Posted
Comments
Sergey Alexandrovich Kryukov 12-Feb-13 13:33pm    
Why is it "jumping"? Any code sample?
—SA

1 solution

In the page directive of the aspx, add: MaintainScrollPositionOnPostback="true"

Example:
ASP.NET
<%@ Page Language="C#" AutoEventWireup="true" CodeFile="Default.aspx.cs"
         MaintainScrollPositionOnPostback="true"  Inherits="_Default" %>
 
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