using System; using System.Web.UI; using System.Web.UI.WebControls; using obout_ASPTreeView_2_NET; // remove "partial" for .NET 1.x public class TreeViewClassMSDN_CS : Page { //Create variables to match web controls on the page public Literal TreeView; //Everything else is exactly the same as if used on an aspx page directly void Page_Load(object sender, EventArgs e) { obout_ASPTreeView_2_NET.Tree oTree = new obout_ASPTreeView_2_NET.Tree();