I have the ClientAPI working nicely in my DNN project, but I'm struggling with getting it to work with a Web Custom control.
My control has 3 dropdownlists on it. The 1st is filled when the control loads and the other are filled when the selection in the main dropdownlist changes.
I have added the references etc... and have added the attribute to the onchange event of the dropdownlist.
<snip>
this.ddlManufacturerList.Attributes.Add("onchange", ClientAPI.GetCallbackEventReference(this, "'test'", "successFunc", "this", "errorFunc"));
</snip>
But when I change the selection it gives me "failed: 404 - ControlNotFound(dnn_ctr600_RunWorkflow_activityModule_MakeModelSelection_ManufacturerList)'". The code is the same as some inside a module ascx file which does work.
Can anyone tell me what else needs to be done to get this working with a custom control?