Click here to Skip to main content
11,805,604 members (59,600 online)
Rate this: bad
Please Sign up or sign in to vote.
See more: C# Ajax
Hi Friends,

I am getting above error when i click on paging links, it works fine first time but when i click on second time on another page link getting error.

<asp:updatepanel id="UpdatePanel1" runat="server" clientidmode="Static">
<asp:gridview id="grvContributor" runat="server" autogeneratecolumns="False" onrowdatabound="OnRowDataBound" onrowcreated="grvContributor_OnRowCreated"
CssClass="content" AllowPaging="true" Width="100%" AlternatingRowStyle-CssClass="odd"
HeaderStyle-CssClass="header" GridLines="Horizontal" OnPageIndexChanging="paging" DataKeyNames="ID"
<asp:boundfield headertext="ID" datafield="ID" headerstyle-cssclass="hiddencol" itemstyle-cssclass="hiddencol">
<asp:panel id="pnldocs" runat="server" style="display: none;vertical-align:top">
<asp:gridview id="grvDocument" runat="server" autogeneratecolumns="false" showheader="false" cssclass="nested"
OnRowCreated="OnRowCreated" BorderStyle="None" BorderWidth="0" AlternatingRowStyle-CssClass="odd" RowStyle-Width="100%">
<asp:label id="lblDocDetails" runat="server" width="100%">
<%# Eval("DocumentName") + " (document ;" + Eval("Type") + "; " + Eval("Size") +")"%>
<asp:boundfield headertext="Contributor" datafield="Contributor" readonly="True">
<asp:boundfield headertext="From" datafield="From">
<asp:boundfield headertext="Subject" datafield="Subject">
<asp:boundfield headertext="Queue" datafield="Queue">
<asp:boundfield headertext="Priority" datafield="Subject" readonly="True">
<asp:boundfield headertext="Status" datafield="Status">
<asp:boundfield headertext="Documents" datafield="Documents">
<asp:boundfield headertext="Links" datafield="Links" readonly="True">
Please help me

Posted 13-Jan-13 19:46pm
Tadit Dash at 14-Jan-13 2:14am
Please provide some code to track the issue.

1 solution

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

Solution 2

add this line in your gridview


if your problem is solved then mark as answered..

Happy coding..

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)

  Print Answers RSS
0 OriginalGriff 3,265
1 Maciej Los 1,990
2 KrunalRohit 1,907
3 CPallini 1,855
4 Richard MacCutchan 1,227

Advertise | Privacy | Mobile
Web02 | 2.8.151002.1 | Last Updated 31 May 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