【发布时间】:2012-01-28 08:55:39
【问题描述】:
我一直使用标准的 Asp.net 控件,除了 AjaxControlToolkit 之外,从来没有遇到过问题。最近我不得不使用非标准 .NET 控件的 Dundas Charting 控件,我必须根据 Dundas 中显示的报告来控制页面的一部分。
很遗憾,Dundas 事件签名无法被 UpdatePanel 识别,并且出现以下错误
说明:
An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code.
异常详情:
System.InvalidOperationException: The 'CommandFired' event on associated control 'chart1' for the trigger in UpdatePanel 'updatepanel1' does not match the standard event handler signature.
所以我想知道是否有可能更改更新面板的处理程序签名?如果是,该怎么做?
【问题讨论】:
-
IMO,事件签名是什么样的?标准事件签名意味着
void返回类型和两个参数 -object(sender) 和事件参数(类型派生自“EventArgs”)。我觉得 Dundas 不太可能有不同的签名 - 也许问题出在其他地方。
标签: asp.net .net ajax error-handling ajaxcontroltoolkit