Aug 27, 2009, 6:33 AM
[CLOSED] How to access a control which is in a user control from .aspx page?
Hi,
How to access a control which is in a user control, from .aspx page?
I am having a tree control in a user control(.ascx) and I placed this user control in a .aspx page now I want to access this tree control from the .aspx java script function
How to access the control name
I am trying this way
I tried the following way too
refreshTree("#{trTopTenSearch}")
How to access a control which is in a user control, from .aspx page?
I am having a tree control in a user control(.ascx) and I placed this user control in a .aspx page now I want to access this tree control from the .aspx java script function
How to access the control name
I am trying this way
I tried the following way too
refreshTree("#{ucSearch.trTopTenSearch}")
*ucSearch is the name of the user controlrefreshTree("#{trTopTenSearch}")
function refreshTree(tree)
{
Coolite.AjaxMethods.ucSearch.RefreshMenu(
{
success: function(result) {
var nodes = eval(result);
tree.root.ui.remove();
tree.initChildren(nodes);
tree.root.render();
}
});
}
But the total object is treated as a string and I am getting java script error