<%@ Page Language=VB Debug=true %>
<%@ Import Namespace="Microsoft.Web.UI.WebControls" %>
<%@ Register TagPrefix="IEControls"
Namespace="Microsoft.Web.UI.WebControls"
Assembly ="Microsoft.Web.UI.WebControls"
%>
<script runat=server>
Sub Page_Load(ByVal Sender as Object, ByVal E as EventArgs)
End Sub
Sub SubmitBtn_Click(Sender As Object, E As EventArgs)
End Sub
</SCRIPT>
<HTML>
<HEAD>
<TITLE>Setting Styles in a TreeView Control</TITLE>
</HEAD>
<BODY LEFTMARGIN="40">
<form runat="server">
<IEControls:treeview
id="tvBasic"
defaultstyle="color:darkblue;background-color:pink;
font-family:Arial"
selectedstyle="color:red;background-color:purple;
font-family:Arial"
hoverstyle="color:green;background-color:yellow;font-family:
Comic Sans MS"
runat="server">
<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>
|