2014-04-03 27 views
0

嗨每一個,GridView的SelectMethod發出帶有Web部件的SharePoint 2013

我有在Web部件的SharePoint 2013一個gridview的問題,我用GridView的模型綁定,我已經分配了一個選擇方法到GridView時我部署的Web部件它引發以下錯誤

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

我已經找到了解決辦法,

需要在CallingDataMethod GridView的事件中註冊該代碼:

protected void GridView1_CallingDataMethods(object sender, System.Web.UI.WebControls.CallingDataMethodsEventArgs e) 
     { 
e.DataMethodsObject = this; 
     } 

和每一件事情都會正常工作

感謝

相關問題