I have developed a site using the TreeView control in Visual Studio 2008.
When I try to run it, it only displays lines of text, with no treeview formatting.
Is their something obvious I am missing here?
I have developed a site using the TreeView control in Visual Studio 2008.
When I try to run it, it only displays lines of text, with no treeview formatting.
Is their something obvious I am missing here?
Two things come to mind -
Check this article for Tree View Quick Starts.
A sample code to display
<asp:TreeView ID="TreeView1" Runat="server">
<Nodes>
<asp:TreeNode Value="Parent1" Expanded="True" Text="1">
<asp:TreeNode Value="Child1A" Text="A" />
<asp:TreeNode Value="Child1B" Text="B" />
</asp:TreeNode>
<asp:TreeNode Value="Parent2" Text="2">
</asp:TreeNode>
<asp:TreeNode Value="Parent3" Expanded="True" Text="3">
<asp:TreeNode Value="Child3A" Text="A">
</asp:TreeNode>
</asp:TreeNode>