Click here to Skip to main content
15,888,088 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
heyy..

I am using a grid in the item template i have a checkbox (grid is in update panel).. But when I scroll the grid then check the check box then the page is jerking and go to top..

here is my gird code.. My source code is large ..if you want I will paste my code...
Posted
Comments
Vani Kulkarni 8-Apr-13 1:55am    
Check if you have set "AutoPostBack=true" for the checkbox.

1 solution

Set MaintainScrollPositionOnPostback to true in your page directive.
Try this:
ASP.NET
<%@ Page Language="C#" AutoEventWireup="true" CodeFile="Default.aspx.cs" Inherits="_Default" MaintainScrollPositionOnPostback="true" %>




--Amit
 
Share this answer
 
v2
Comments
aravindnass 8-Apr-13 3:25am    
its not working ,I put this on page(have master page)..when I scroll down the page and check the check box then the page go to first..
_Amy 8-Apr-13 3:26am    
Put it in content page also. :)

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