GridView SelectMethod Issue With WebPart Sharepoint 2013

家住魔仙堡 提交于 2019-12-04 06:39:09

问题


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


回答1:


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



来源:https://stackoverflow.com/questions/22846340/gridview-selectmethod-issue-with-webpart-sharepoint-2013

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!