Click here to Skip to main content
Rate this: bad
good
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"
EnableViewState="False">
 
<asp:boundfield headertext="ID" datafield="ID" headerstyle-cssclass="hiddencol" itemstyle-cssclass="hiddencol">
 
<asp:templatefield>
<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:templatefield>
 
<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
 
Thanks,
Jagadeesh
Posted 13-Jan-13 19:46pm
v2
Comments
Tadit Dash at 14-Jan-13 2:14am
   
Please provide some code to track the issue.

1 solution

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

Solution 2

add this line in your gridview
 
EnableModelValidation="true"
 
if your problem is solved then mark as answered..
 
Thanks
Happy coding..
  Permalink  

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



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