Scenario: I have a tree view on my page, and the code-behind is handling the Node Click event. Thus the tree posts to the form when the user clicks a node. However, I have custom javascript to do form checking and cancel the form under certain conditions. I want the tree view to revert its selection if the form is canceled.
The problem is that the tree view is in a separate web part from the web part that emits the form validation script, so the form validation script doesn't know the ID of the tree view, and can't even necessarily assume that the part with the tree is on the page. What would you suggest I do to solve my problem?
The problem is that the tree view is in a separate web part from the web part that emits the form validation script, so the form validation script doesn't know the ID of the tree view, and can't even necessarily assume that the part with the tree is on the page. What would you suggest I do to solve my problem?