asp.net - Apply Different leaf node styles at same level in Treeview -


i in need of showing directory structure using tree view control dynamically.i able tree view there problem styles. tree view looks this.

enter image description here

but problem (in image) machine types , mother board reports @ same level,but want show different icon machine type(i want folder icon) , motherboard report (file icon).actually generating structure database using web.site map.

my treeview code in aspx file follows.

<asp:treeview id="treeview1" runat="server">         <rootnodestyle imageurl="~/treeview/images/folder/folder.gif" />         <parentnodestyle imageurl="~/treeview/images/folder/folder.gif" />         <leafnodestyle imageurl="~/treeview/images/folder/file.gif" /> </asp:treeview> 

so can body me out..

thanks

you can use imageurl property of each node achieve : eg:

<asp:treenode imageurl="image.jpg"></asp:treenode> 

Comments

Popular posts from this blog

monitor web browser programmatically in Android? -

Shrink a YouTube video to responsive width -

wpf - PdfWriter.GetInstance throws System.NullReferenceException -