Hi all,
After a day of testing I found a solution:
1. On my aspx I have defined a JS function to get the treeview state:
<script for="TreeView1">
function get_state(){
var control = document.getElementById('Menutree_TreeView1');
if( control != null ){
//alert(control.clickedNodeIndex);
return control.clickedNodeIndex;
}else{
//alert("Control Not Found");
return "0";
}
}
</script>
2. In the NavigateURL property I put:
NavigateUrl="javascript:window.navigate('webform3.aspx?tstate=' + get_state())
Next is easy is only get the tstate parameter on the request object, and set the SelectedNodeIndex of the treeview
Hope helps,
NeuralC