treeView = $find("<%= MyTree.ClientID %>");
but this but when the code runs, this error appears:
The Controls collection cannot be modified because the control contains code blocks (i.e. <% ... %>).
I've tried this code too:
var tree = $find("MyTree");
but this error appears:
Microsoft JScript runtime error: Object expected
What's the reason ? Is it because of the old version or not ?