用户控件中的Dundas图表

用户控件中的Dundas图表

本文介绍了用户控件中的Dundas图表的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有一个带有ajax缩放和滚动启用功能的dundas图表.在网络表单页面中,它可以正常工作.但是一旦我放入一个用户控件并从另一个页面调用它,我就会收到此错误-

I have a dundas chart with ajax zooming and scrolling enable.It works fine in a webform page. But once I put in a user control and called it from another page I get this error -

找不到回调的目标'ctl00 $ ContentPlaceHolder1 $ uc2 $ chartVisits'或未实现ICallbackEventHandler.

the target 'ctl00$ContentPlaceHolder1$uc2$chartVisits' for the callback could not be found or did not implement ICallbackEventHandler.

-当我尝试使用缩放和滚动功能时.

-when I try to use the zoom and scroll functionality.

我该怎么做才能解决此问题.谢谢.

What can I do to resolve this problem.Thank You.

推荐答案

动态添加使用AJAX的控件时,我已经看到此错误.确保在OnInit方法中或在Page_Init事件期间添加任何控件.过去为我解决了这个问题.

I've seen this error when dynamically adding controls that use AJAX. Make sure you're adding any controls in the OnInit method, or during the Page_Init event. That has solved this problem for me in the past.

这篇关于用户控件中的Dundas图表的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

08-20 22:03