本文介绍了如何设置EnableEventValidation =" false"在sharepoint 2010?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

嗨专家,

使用下面提到的代码来实现网格视图的行选择

Hi experts,
Am using below mentioned code to achieve row selection of a grid view

protected void grdSupplierDetails_RowDataBound1(object sender, GridViewRowEventArgs e)
     {
         try
         {
             if (e.Row.RowType == DataControlRowType.DataRow)
             {
                 e.Row.Attributes.Add("onmouseover", "this.style.cursor='pointer'");
                 e.Row.Attributes["onclick"] = this.Page.ClientScript.GetPostBackClientHyperlink(this.grdSupplierDetails, "Select$" + e.Row.RowIndex.ToString());
                 e.Row.ToolTip = "Click to select this row.";
             }
         }
         catch (Exception ex)
         {
         }
     }





但是我收到了错误



But am getting error as

Invalid postback or callback argument.  Event validation is enabled using <pages enableEventValidation="true"/> in configuration or <%@ Page EnableEventValidation="true" %> in a page.  For security purposes, this feature verifies that arguments to postback or callback events originate from the server control that originally rendered them.  If the data is valid and expected, use the ClientScriptManager.RegisterForEventValidation method in order to register the postback or callback data for validation.



任何人都可以帮我解决这个问题。?

如果它在普通的aspx页面中,我们可以在页面指令中使用EnableEventValidation =false。

如何在sharepoint中解决这个问题?



提前谢谢

(Keerthi Kumar)


Can anyone please help me to solve this issue.?
if it is in normal aspx page we can EnableEventValidation="false" in page directive.
How to solve this in sharepoint?

thank you in advance
(Keerthi Kumar)

推荐答案





但是收到错误



But am getting error as

Invalid postback or callback argument.  Event validation is enabled using <pages enableEventValidation="true"/> in configuration or <%@ Page EnableEventValidation="true" %> in a page.  For security purposes, this feature verifies that arguments to postback or callback events originate from the server control that originally rendered them.  If the data is valid and expected, use the ClientScriptManager.RegisterForEventValidation method in order to register the postback or callback data for validation.



任何人都可以帮我解决这个问题。?

如果它在普通的aspx页面中,我们可以在页面指令中使用EnableEventValidation =false。

如何在sharepoint中解决这个问题?



提前谢谢

(Keerthi Kumar)


Can anyone please help me to solve this issue.?
if it is in normal aspx page we can EnableEventValidation="false" in page directive.
How to solve this in sharepoint?

thank you in advance
(Keerthi Kumar)


C:\inetpub\wwwroot\wss\VirtualDirectories



1.在端口号文件夹中,您将获得web.config文件。

2.In web.config文件put EnableEvetValidation =false
页面指令标签内的


1.Inside the port number Folder you will get web.config File.
2.In web.config file put EnableEvetValidation="false"
inside Page Directive Tag


这篇关于如何设置EnableEventValidation =&quot; false&quot;在sharepoint 2010?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

08-16 02:01