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
Edited 13-Jan-13 22:41pm
Tadit Dash83.3K
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)

  Print Answers RSS
Your Filters
Interested
Ignored
     
0 Sergey Alexandrovich Kryukov 372
1 OriginalGriff 295
2 thatraja 215
3 Emre Ataseven 155
4 Shai Vashdi 125
0 Sergey Alexandrovich Kryukov 8,849
1 OriginalGriff 5,035
2 Peter Leow 3,949
3 Maciej Los 3,535
4 Abhinav S 3,148


Advertise | Privacy | Mobile
Web03 | 2.8.140415.2 | Last Updated 31 May 2013
Copyright © CodeProject, 1999-2014
All Rights Reserved. Terms of Use
Layout: fixed | fluid