R
Rog
Hello,
I downloaded a Micrsoft Web Controls package from
http://msdn.microsoft.com/library/default.asp?
url=/library/en-us/dnaspp/html/aspnet-
usingtreeviewiewebcontrol.asp
After reading the readme file and following the
instructions I have not been able to create a simple app
with a treeview control. All I get is text on one line
(all my nodes on one line). What I did next was to add
the Microsoft.Web.UI.Webcontrols.dll to the components
list of VS2003. However, the dll did not live in the
Global Assembly. I added it from the root directory of my
Web server. Would it make a difference if I added it to
the Global Assembly? How to do that?
Also, I went to
http://msdn.microsoft.com/library/default.asp?
url=/workshop/webcontrols/webcontrols_entry.asp
and selected the Treeview Control link. Here they have
several examples. I copied one of the simple examples
(under "Defining a TreenodeType). It even has a "show me"
button which shows what the example looks like. When I
copied this example to a file on my web root:
------------------------------------------------------
<%@ import
namespace="Microsoft.Web.UI.WebControls" %>
<%@ Register TagPrefix="mytree"
Namespace="Microsoft.Web.UI.WebControls"
Assembly="Microsoft.Web.UI.WebControls, Version=1.0.2.226,
Culture=neutral, PublicKeyToken=31bf3856ad364e35" %>
<html>
<head>
</head>
<body>
<form id="myform" runat="server">
<mytree:treeview runat="server" ChildType="Folder">
<mytree:treenodetype Type="Folder"
ExpandedImageUrl="./images/folderopen.gif"
ImageUrl="./images/folder.gif" />
<mytree:treenode Text="Michigan">
<mytree:treenode Text="Detroit" />
<mytree:treenode Text="Farmington" />
<mytree:treenode Text="Southfield" />
</mytree:treenode>
<mytree:treenode Text="Washington" >
<mytree:treenode Text="Bellevue" />
<mytree:treenode Text="Redmond" />
<mytree:treenode Text="Woodinville" />
</mytree:treenode>
</mytree:treeview>
</form>
</body>
</html>
-------------------------------------------------
all I got was text on one line for the TreeNode part
(Note: I had to remove Version=1.0.2.226, Culture=neutral,
PublicKeyToken=31bf3856ad364e35 from the @Register line
because I kept getting an error when starting the page).
I was then able to run the page on my web server, but I
did not get the hierarchical view from the "show me"
button at this link (just below "Defining a TreenodeType":
http://msdn.microsoft.com/library/default.asp?
url=/workshop/webcontrols/webcontrols_entry.asp
Does anyone know what I need to do to make this example
work on my web server?
Thanks,
Rog
I downloaded a Micrsoft Web Controls package from
http://msdn.microsoft.com/library/default.asp?
url=/library/en-us/dnaspp/html/aspnet-
usingtreeviewiewebcontrol.asp
After reading the readme file and following the
instructions I have not been able to create a simple app
with a treeview control. All I get is text on one line
(all my nodes on one line). What I did next was to add
the Microsoft.Web.UI.Webcontrols.dll to the components
list of VS2003. However, the dll did not live in the
Global Assembly. I added it from the root directory of my
Web server. Would it make a difference if I added it to
the Global Assembly? How to do that?
Also, I went to
http://msdn.microsoft.com/library/default.asp?
url=/workshop/webcontrols/webcontrols_entry.asp
and selected the Treeview Control link. Here they have
several examples. I copied one of the simple examples
(under "Defining a TreenodeType). It even has a "show me"
button which shows what the example looks like. When I
copied this example to a file on my web root:
------------------------------------------------------
<%@ import
namespace="Microsoft.Web.UI.WebControls" %>
<%@ Register TagPrefix="mytree"
Namespace="Microsoft.Web.UI.WebControls"
Assembly="Microsoft.Web.UI.WebControls, Version=1.0.2.226,
Culture=neutral, PublicKeyToken=31bf3856ad364e35" %>
<html>
<head>
</head>
<body>
<form id="myform" runat="server">
<mytree:treeview runat="server" ChildType="Folder">
<mytree:treenodetype Type="Folder"
ExpandedImageUrl="./images/folderopen.gif"
ImageUrl="./images/folder.gif" />
<mytree:treenode Text="Michigan">
<mytree:treenode Text="Detroit" />
<mytree:treenode Text="Farmington" />
<mytree:treenode Text="Southfield" />
</mytree:treenode>
<mytree:treenode Text="Washington" >
<mytree:treenode Text="Bellevue" />
<mytree:treenode Text="Redmond" />
<mytree:treenode Text="Woodinville" />
</mytree:treenode>
</mytree:treeview>
</form>
</body>
</html>
-------------------------------------------------
all I got was text on one line for the TreeNode part
(Note: I had to remove Version=1.0.2.226, Culture=neutral,
PublicKeyToken=31bf3856ad364e35 from the @Register line
because I kept getting an error when starting the page).
I was then able to run the page on my web server, but I
did not get the hierarchical view from the "show me"
button at this link (just below "Defining a TreenodeType":
http://msdn.microsoft.com/library/default.asp?
url=/workshop/webcontrols/webcontrols_entry.asp
Does anyone know what I need to do to make this example
work on my web server?
Thanks,
Rog