Jun 22, 2012, 7:35 PM
[CLOSED] DirectMethod in customcontrol error
I'm getting an error when putting a directmethod in a custom control as described in http://forums.ext.net/showthread.php?15060.
The procedure worked for another control, but this one is causing an error in Ext.Net.ResourceManager.RaisePostBackEvent saying "The control with ID 'ctl00_HelpWindowViewer' not found", where ctl00_HelpWindowViewer is the id of the control where the directmethod is placed in. If i place the same directmethod in the page and remove the control id from the call it works fine. I'm calling the directmethod like this:
The procedure worked for another control, but this one is causing an error in Ext.Net.ResourceManager.RaisePostBackEvent saying "The control with ID 'ctl00_HelpWindowViewer' not found", where ctl00_HelpWindowViewer is the id of the control where the directmethod is placed in. If i place the same directmethod in the page and remove the control id from the call it works fine. I'm calling the directmethod like this:
var loadRecords = eval("Ext.net.DirectMethods." + this.id + ".HelpViewer_LoadRecords");
loadRecords(...);
It's hard to make an example due to the complexity of the custom control and it's database interactions. Only having the place where the error occurs and the message, do you have any hint on what may be causing it?
Last edited by Daniil; Jun 26, 2012 at 10:23 PM.
Reason: [CLOSED]