Using Images with TreeNode Controls in a TreeView Control (VB.net)
<%@ Page Language=VB Debug=true %> <%@ Import Namespace="Microsoft.Web.UI.WebControls" %> <%@ Register TagPrefix="IEControls" Namespace="Microsoft.Web.UI.WebControls" Assembly ="Microsoft.Web.UI.WebControls" %> <HTML> <HEAD> <TITLE>Using Images with TreeNode Controls in a TreeView Control</TITLE> </HEAD> <BODY LEFTMARGIN="40"> <form runat="server"> <IEControls:treeview id="tvBasic" runat="server" imageurl="3.ico" expandedimageurl="Smile.ico" selectedimageurl="4.ico" > <IEControls:treenode Text="Clothing"> <IEControls:treenode Text="Men's"/> <IEControls:treenode Text="Women's"/> <IEControls:treenode Text="Children's"> <IEControls:treenode Text="Socks"/> <IEControls:treenode Text="Shirts"/> <IEControls:treenode Text="Pants"/> </IEControls:treenode> </IEControls:treenode> <IEControls:treenode Text="Electronics"> <IEControls:treenode Text="TV/VCR"/> <IEControls:treenode Text="Audio"/> <IEControls:treenode Text="Car"/> <IEControls:treenode Text="Computer"/> </IEControls:treenode> </IEControls:treeview> </form> </BODY> </HTML>