Click here to Skip to main content
13,201,451 members (72,886 online)
Rate this:
Please Sign up or sign in to vote.
See more:

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

  Print Answers RSS
Top Experts
Last 24hrsThis month

Advertise | Privacy |
Web02 | 2.8.171020.1 | Last Updated 8 Apr 2013
Copyright © CodeProject, 1999-2017
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