Click here to Skip to main content
11,804,008 members (80,335 online)
Rate this: bad
Please Sign up or sign in to vote.
See more: C# ASP.NET grid

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 7-Apr-13 19:53pm
Vani Kulkarni at 8-Apr-13 1:55am
Check if you have set "AutoPostBack=true" for the checkbox.

1 solution

Rate this: bad
Please Sign up or sign in to vote.

Solution 1

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

aravindnass at 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 at 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)

  Print Answers RSS
0 OriginalGriff 410
1 CPallini 310
2 Sergey Alexandrovich Kryukov 234
3 CHill60 230
4 Suvendu Shekhar Giri 200
0 OriginalGriff 3,140
1 Maciej Los 1,910
2 KrunalRohit 1,907
3 CPallini 1,845
4 Richard MacCutchan 1,187

Advertise | Privacy | Mobile
Web01 | 2.8.151002.1 | Last Updated 8 Apr 2013
Copyright © CodeProject, 1999-2015
All Rights Reserved. Terms of Service
Layout: fixed | fluid

CodeProject, 503-250 Ferrand Drive Toronto Ontario, M3C 3G8 Canada +1 416-849-8900 x 100