473,508 Members | 2,303 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

how to add a control to Global Assembly?

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
Nov 16 '05 #1
2 1304
Hi Rog
In the .net command prompt use this command
gacutil /i myDll.dll
Replace myDll with your name

Regards
Ansil

"Rog" wrote:
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

Nov 16 '05 #2
Rog
Thanks. I will give that a try.

-----Original Message-----
Hi Rog
In the .net command prompt use this command
gacutil /i myDll.dll
Replace myDll with your name

Regards
Ansil

"Rog" wrote:
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

.

Nov 16 '05 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

5
3508
by: Tom | last post by:
I have created a C# User Control which house my header information. I have another development group that would like to use this but they are VB developers. Is their a way to leverage my C#...
2
1679
by: Abdessamad Belangour | last post by:
Hi all, and thanks for previous answers (especially Nicholas Paldino) An assembly is composed of a set of modules. The module class has a method for reading global methods GetMethods(). My...
3
1517
by: DDE | last post by:
Hi everybody, I developed an assembly common to all my Web Services, so I registered it and put it in the Global Assembly Cache. Now, I modified this assembly, but cannot succed to have this new...
2
442
by: Ron | last post by:
I need to write a custom textbox control that references an object located in the Global.asax class, but I can't compile the control into a DLL without including the reference to the project DLL...
7
960
by: JerryW | last post by:
I just reinstalled .NET 2003 (after repeated attempts to get ASP.NET Web Applications to work). I first did a complete uninstall of .NET 2003, .NET Framework 1.1, and IIS. I also completely deleted...
2
1459
by: Xin Li | last post by:
I am writing a database searching system that will be shared across about 30 or so websites. A while back I asked how I can share the business objects among the 30 websites, and was introduced to...
1
1368
by: Ray | last post by:
Dear all, Now, I am using Global Assembly Cache to share assembly between server and clients. However, it seems that the server and clients use individual Global Assembly Cache. For example, the...
2
1845
by: john | last post by:
Maybe I haven't had that "a-ha" moment yet, but I think the new approach to web projects is a step in the wrong direction. My main beef is that control over the assembly generation process has...
11
8317
by: Ron | last post by:
I have a web project compiled with the new "Web Deployment Projects" plugin for VS2005. I'm deploying the web project to one assembly and with updateable option set to ON. When I'm running the...
0
7323
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
1
7039
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
7494
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
5626
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
1
5050
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...
0
4706
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and...
0
3180
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
763
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
0
415
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.