Tuesday, December 11, 2007

Set an ASP.NET TreeView Node to Expand and not PostBack

A classic small snippet of code that I use infrequently and takes me too long to find when I need it. Here's how to set an ASP.NET TreeView Node to expand and not PostBack when clicked.
tvNode.SelectAction = TreeNodeSelectAction.Expand;

No comments: