使用WebPart Sharepoint 2013的GridView SelectMethod问题 [英] GridView SelectMethod Issue With WebPart Sharepoint 2013
本文介绍了使用WebPart Sharepoint 2013的GridView SelectMethod问题的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
每个人都喜欢
我在webpart sharepoint 2013中有一个gridview问题,我使用modelview和gridview当我部署webpart时,它给gridview分配了一个select方法,它引发了以下错误:
名称的公共方法是找不到或者在类型x.master
上有相同名称的多个方法
。 非常感谢
解决方案
我找到了解决方案,
您需要在CallingDataMethod GridView事件中注册以下代码:
protected void GridView1_CallingDataMethods(object sender,System。 Web.UI.WebControls.CallingDataMethodsEventArgs e)
{
e.DataMethodsObject = this;
}
并且每件事情都可以正常工作
谢谢
Hi every one ,
I have a problem with a gridview in webpart sharepoint 2013 ,I use model bind with the gridview and I have assigned a select method to the gridview when I deployed the webpart it raise the following error
A public method with the name was either not found or there were multiple methods
with the same name on the type x.master
thanks alot
解决方案
I have found the solution ,
you need to register this code within the CallingDataMethod GridView event :
protected void GridView1_CallingDataMethods(object sender, System.Web.UI.WebControls.CallingDataMethodsEventArgs e)
{
e.DataMethodsObject = this;
}
and every thing will work fine
thanks
这篇关于使用WebPart Sharepoint 2013的GridView SelectMethod问题的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文