Hey Guys -
I need to dynamically set nodes to be selected on a treeview control dependent on a user's permission level and what operation they're beginning. Problem is, treeview.selectednode is read only. How can I get around this
The documentation online indicates that the selectednode property is get or set, but my build obviously doesn't say that. Could it be that my development environment is awry
Thanks,
Tim

treeview.selectednode read only?
victu
Yes MSDN Says you can set and get Are you getting any error at compile time when you try to set it's Value or you are not getting successfull result in accordance with selection at runtime
Best Regards,
Vishalgiri
Yes, I do get an error at compile time:
Error 1 Property or indexer 'System.Web.UI.WebControls.TreeView.SelectedNode' cannot be assigned to -- it is read only
This just really doesn't make sense to me. Thanks for your assistance!
Tim
Bengt Gunne
You are always Welcome!
Best Regards,
Andyc1
Ahhh, you are working in Web (ASP.Net)!
Yes in ASP.Net it is readonly you can only get but not set it using this property wheter you can use Node.Selected = true or Node.Selected = false to achive the same functionality!
I hope this will work for you now!
Best Regards,
czy11421