大家好,
我在webpart sharepoint 2013中遇到gridview的问题,我使用gridview与gridview,我在部署webpart时为gridview分配了一个select方法,它引发了以下错误
A public method with the name was either not found or there were multiple methods
with the same name on the type x.master
非常感谢
答案 0 :(得分:0)
我找到了解决方案,
您需要在CallingDataMethod GridView事件中注册此代码:
protected void GridView1_CallingDataMethods(object sender, System.Web.UI.WebControls.CallingDataMethodsEventArgs e)
{
e.DataMethodsObject = this;
}
并且每件事都能正常工作
感谢