troubleshooting Question

treeview 101

Avatar of fwsteal
fwsteal asked on
ASP.NET
3 Comments1 Solution850 ViewsLast Modified:
I'm using the ie web controls and vs 2003. I've added my reference to the dll and have everything set up - I think. I've created my treeview and everytime I run it in the browser there is no tree, just a string of text. What am I doing wrong?

my aspx code:
<%@ Register TagPrefix="iewc" Namespace="Microsoft.Web.UI.WebControls" Assembly="Microsoft.Web.UI.WebControls" %>
<iewc:treeview id="TreeView1" runat="server" SystemImagesPath="treeimages/" ChildType="Folder">
                        <iewc:TreeNodeType ImageUrl="images/folder.gif" ChildType="City" Type="Folder" ExpandedImageUrl="images/folderopen.gif"></iewc:TreeNodeType>
                        <iewc:TreeNodeType ImageUrl="images/html.gif" Type="City"></iewc:TreeNodeType>
                        <iewc:TreeNode Text="Michigan" ChildType="Folder">
                              <iewc:TreeNode Text="Detroit" ChildType="City"></iewc:TreeNode>
                              <iewc:TreeNode Text="Farmington"></iewc:TreeNode>
                              <iewc:TreeNode Text="Southfield"></iewc:TreeNode>
                        </iewc:TreeNode>
                        <iewc:TreeNode Text="Washington" ChildType="Folder">
                              <iewc:TreeNode Text="Bellevue" ChildType="City"></iewc:TreeNode>
                              <iewc:TreeNode Text="Redmond"></iewc:TreeNode>
                              <iewc:TreeNode Text="Woodinville"></iewc:TreeNode>
                        </iewc:TreeNode>
                  </iewc:treeview>


Here is the code behind code:
Imports System.Web
Imports System.Web.UI
Imports Microsoft.Web.UI.WebControls


Here is the result:
Michigan Detroit Farmington Southfield Washington Bellevue Redmond Woodinville
Join the community to see this answer!
Join our exclusive community to see this answer & millions of others.
Unlock 1 Answer and 3 Comments.
Join the Community
Learn from the best

Network and collaborate with thousands of CTOs, CISOs, and IT Pros rooting for you and your success.

Andrew Hancock - VMware vExpert
See if this solution works for you by signing up for a 7 day free trial.
Unlock 1 Answer and 3 Comments.
Try for 7 days

”The time we save is the biggest benefit of E-E to our team. What could take multiple guys 2 hours or more each to find is accessed in around 15 minutes on Experts Exchange.

-Mike Kapnisakis, Warner Bros