Hello,
I am using the client object model. I have a page with 3 user controls. I have JavaScript in UserControl1 that needs a reference to a TreeView control which resides in UserControl2. Can I do that?
Secondly, I have the option of removing the User Controls and just using the page (aspx) would that save me compilcations later?
Updated** Attempt2 works:
I am using the client object model. I have a page with 3 user controls. I have JavaScript in UserControl1 that needs a reference to a TreeView control which resides in UserControl2. Can I do that?
Secondly, I have the option of removing the User Controls and just using the page (aspx) would that save me compilcations later?
Updated** Attempt2 works:
// attempt1: does not resolve at compile time var tree = $find("<%= RadTreeViewCommands.ClientID %>"); // attempt2: radTreeViewCommandsClientID is a global variable we set on the server var tree = $find(radTreeViewCommandsClientID);