或未实现ICallbackEventHandler

或未实现ICallbackEventHandler

本文介绍了无法找到回调的目标'__Page'或未实现ICallbackEventHandler。的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我将此代码转换为 [ ]

到vb.net

我有这个问题

在C#



I converted this Code [^]
to vb.net
and I have this Problem
in C#

ClientScriptManager cm = Page.ClientScript;
          String cbReference = cm.GetCallbackEventReference(this, "arg","ReceiveServerData", "");
          String callbackScript = "function CallServer(arg, context) {" + cbReference + "; }";
          cm.RegisterClientScriptBlock(this.GetType(), "CallServer", callbackScript, true);



我将其转换为vb .net




I converted it to in vb.net

Dim cm As ClientScriptManager = Page.ClientScript
          Dim cbReference As String
          cbReference = cm.GetCallbackEventReference(Me, "arg", "ReceiveServerData", "")
          Dim callbackScript As String = ""
          callbackScript &= "function CallServer(arg, context)" & "{" & cbReference & "; }"
          cm.RegisterClientScriptBlock(Me.GetType(), "CallServer", callbackScript, True)







我有无效的操作异常

cbReference = cm.GetCallbackEventReference(我,arg,ReceiveServerData,)

目标''找不到回调的__Page''或没有实现ICallbackEventHandler。




I have invalid operation exception in
cbReference = cm.GetCallbackEventReference(Me, "arg", "ReceiveServerData", "")
The target ''__Page'' for the callback could not be found or did not implement ICallbackEventHandler.

推荐答案


这篇关于无法找到回调的目标'__Page'或未实现ICallbackEventHandler。的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

08-20 02:55