Microsoft JScript运行时错误:Sys.WebForms.PageRequestManagerServerErrorException:状态信息对于此页面无效,可能已损坏。 [英] Microsoft JScript runtime error: Sys.WebForms.PageRequestManagerServerErrorException: The state information is invalid for this page and might be corrupted.

查看:42
本文介绍了Microsoft JScript运行时错误:Sys.WebForms.PageRequestManagerServerErrorException:状态信息对于此页面无效,可能已损坏。的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

嗨朋友们,



我点击分页链接时出现上述错误,第一次工作正常,但是当我第二次点击其他页面链接时得到错误。



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



请帮忙我



谢谢,

Jagadeesh


Please help me

Thanks,
Jagadeesh

推荐答案

在你的行中添加这一行gridview



EnableModelValidation =true



如果问题解决了然后标记为已回答..



谢谢

快乐编码..
add this line in your gridview

EnableModelValidation="true"

if your problem is solved then mark as answered..

Thanks
Happy coding..


这篇关于Microsoft JScript运行时错误:Sys.WebForms.PageRequestManagerServerErrorException:状态信息对于此页面无效,可能已损坏。的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
相关文章
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆