I have added WebGauge as a part of a user control. The user control is added to page dynamically built from a database. I can see the asynch post operation of the control and the response...
eThe target 'ctl00$ContentPlaceHolder1$Gauge0$PBOParamGauge' for the callback could not be found or did not implement ICallbackEventHandler
Can anyone point me to what I may have wrong or where to look?
Version 11.1.20111.2036
Hello jedwards,
when you are adding the user control? What is the event?
Thank you
During Page_Init
I connect to the datasource and get my list of "Monitored Elements"
During Page_Load
I select a Monitored Element and Dynamically build gauges by adding a user control for each "Monitored Point".
jedwards,
attach sample or paste your code here so we can look into it.
Attached page and codebehind in default.zip
thank you for the attached file. I was not able to reproduce this error. After I researched for more information I found an article that may help you:
Error: The target “ControlID” for the callback could not be found or did not implement ICallbackEventHandler.
Scenario 1: You try to dynamically add web controls to a ContentPlaceholder or Panel and on a postback of the page caused by triggering an event from the web control, you get the error.
Cause of Scenario 1: When the event is fired, the generated web control that fired the event is no longer on the page.
Resolution of Scenario 1: Make sure you add the dynamically generated web controls on every page load. Ex: Generate controls on !Page.IsPostBack and Page.IsPostBack cases.