Click here to Skip to main content
Rate this: bad
good
Please Sign up or sign in to vote.
See more: C# ASP.NET grid
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 7-Apr-13 20:53pm
Comments
Vani Kulkarni at 8-Apr-13 1:55am
   
Check if you have set "AutoPostBack=true" for the checkbox.

1 solution

Rate this: bad
good
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" %>
 

 
--Amit
  Permalink  
v2
Comments
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 245
1 Kamal Rocks 184
2 Sergey Alexandrovich Kryukov 175
3 BillWoodruff 173
4 PIEBALDconsult 160
0 OriginalGriff 5,655
1 DamithSL 4,506
2 Maciej Los 3,997
3 Kornfeld Eliyahu Peter 3,480
4 Sergey Alexandrovich Kryukov 3,180


Advertise | Privacy | Mobile
Web03 | 2.8.141216.1 | Last Updated 8 Apr 2013
Copyright © CodeProject, 1999-2014
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