473,387 Members | 1,890 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,387 software developers and data experts.

ASP.NET Treeview example anyone ?

I'm trying to get the TreeView control from the Microsoft.Web.UI.WebControls
namespace to work but for some reason it won't render correctly. I've found
some webpages on the MSDN site about this control, where they create sample
code for it but it doesn't seem to work. All node-text is concatenated and
shown as a long string. In design mode you can also add nodes but they all
appear with a picturebox in front of the text, in the picture box is a
little red cross, it think that it can't seem to find its graphics.

Can someone help me get a working example ?
TIA,
Jurjen de Groot
G.I.T.S. Netherlands
Nov 17 '05 #1
6 6251
Is the machine you are developing with also your web server?

--
Stephajn Craig
"Jurjen de Groot" <in**@gits-online.nl> wrote in message
news:eg**************@tk2msftngp13.phx.gbl...
I'm trying to get the TreeView control from the Microsoft.Web.UI.WebControls namespace to work but for some reason it won't render correctly. I've found some webpages on the MSDN site about this control, where they create sample code for it but it doesn't seem to work. All node-text is concatenated and
shown as a long string. In design mode you can also add nodes but they all
appear with a picturebox in front of the text, in the picture box is a
little red cross, it think that it can't seem to find its graphics.

Can someone help me get a working example ?
TIA,
Jurjen de Groot
G.I.T.S. Netherlands

Nov 17 '05 #2
Yes, I also run IIS on my development machine (p4 1.7G, 512mb, Window
2000 Professional)


*** Sent via Developersdex http://www.developersdex.com ***
Don't just participate in USENET...get rewarded for it!
Nov 17 '05 #3
Make sure that you have the Web Controls installed on both machines. There
is a folder called Webctrl_client used by the Web Controls which must be in
the root of your website in order for this to work.

--
Stephajn Craig
"Jurjen de Groot" <in**@gits-online.nl> wrote in message
news:O8**************@TK2MSFTNGP12.phx.gbl...
Yes, I also run IIS on my development machine (p4 1.7G, 512mb, Window
2000 Professional)


*** Sent via Developersdex http://www.developersdex.com ***
Don't just participate in USENET...get rewarded for it!

Nov 17 '05 #4
Stephajn,

As I understand it the webctrl_client folder has to be located in the
wwwroot, that works! Moving it within the project folder
...\wwwroot\test_treeview does seem to do the trick in the designer but when
running the web-app it doesn't work.

If it HAS to be located in the ...\wwwroot there would probably be a problem
deploying the application to .NET hosting firms I would imagine.

Did you get it to work locating the webctrl_Client within your project
directory ?
Jurjen.

"Stephajn Craig" <s.*****@NOSPAMfunsunvacations.com> wrote in message
news:ea**************@TK2MSFTNGP10.phx.gbl...
Make sure that you have the Web Controls installed on both machines. There is a folder called Webctrl_client used by the Web Controls which must be in the root of your website in order for this to work.

--
Stephajn Craig
"Jurjen de Groot" <in**@gits-online.nl> wrote in message
news:O8**************@TK2MSFTNGP12.phx.gbl...
Yes, I also run IIS on my development machine (p4 1.7G, 512mb, Window
2000 Professional)


*** Sent via Developersdex http://www.developersdex.com ***
Don't just participate in USENET...get rewarded for it!


Nov 17 '05 #5
Ok thanks, I'll try that.

Jurjen.

"Stephajn Craig" <s.*****@NOSPAMfunsunvacations.com> wrote in message
news:%2****************@TK2MSFTNGP10.phx.gbl...
You only need one copy of that folder in the root folder of your website.
So if your hosting company has created a virtual site for you, you won't
need to have the webctrl_client folder in their wwwroot folder, only at the root of *your* site and that's it.

HTH

--
Stephajn Craig
"Jurjen de Groot" <in**@gits-online.nl> wrote in message
news:e3**************@TK2MSFTNGP10.phx.gbl...
Stephajn,

As I understand it the webctrl_client folder has to be located in the
wwwroot, that works! Moving it within the project folder
..\wwwroot\test_treeview does seem to do the trick in the designer but

when
running the web-app it doesn't work.

If it HAS to be located in the ...\wwwroot there would probably be a

problem
deploying the application to .NET hosting firms I would imagine.

Did you get it to work locating the webctrl_Client within your project
directory ?
Jurjen.

"Stephajn Craig" <s.*****@NOSPAMfunsunvacations.com> wrote in message
news:ea**************@TK2MSFTNGP10.phx.gbl...
Make sure that you have the Web Controls installed on both machines.

There
is a folder called Webctrl_client used by the Web Controls which must be
in
the root of your website in order for this to work.

--
Stephajn Craig
"Jurjen de Groot" <in**@gits-online.nl> wrote in message
news:O8**************@TK2MSFTNGP12.phx.gbl...
> Yes, I also run IIS on my development machine (p4 1.7G, 512mb,

Window > 2000 Professional)
>
>
>
>
>
>
> *** Sent via Developersdex http://www.developersdex.com ***
> Don't just participate in USENET...get rewarded for it!



Nov 17 '05 #6
Hello Jurjen,

If you have follow up questions or the problem is still there, please post
here. Thanks very much.

Best regards,
yhhuang
VS.NET, Visual C++
Microsoft

This posting is provided "AS IS" with no warranties, and confers no rights.
Got .Net? http://www.gotdotnet.com
--------------------
!From: "Jurjen de Groot" <in**@gits-online.nl>
!References: <#k**************@TK2MSFTNGP10.phx.gbl>
<O8**************@TK2MSFTNGP12.phx.gbl>
<ea**************@TK2MSFTNGP10.phx.gbl>
<e3**************@TK2MSFTNGP10.phx.gbl>
<#l**************@TK2MSFTNGP10.phx.gbl>
!Subject: Re: ASP.NET Treeview example anyone ?
!Date: Tue, 8 Jul 2003 17:16:54 +0200
!Lines: 71
!X-Priority: 3
!X-MSMail-Priority: Normal
!X-Newsreader: Microsoft Outlook Express 6.00.2800.1158
!X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1165
!Message-ID: <#V**************@TK2MSFTNGP11.phx.gbl>
!Newsgroups: microsoft.public.dotnet.framework.aspnet
!NNTP-Posting-Host: qn-213-73-175-236.quicknet.nl 213.73.175.236
!Path: cpmsftngxa09.phx.gbl!TK2MSFTNGP08.phx.gbl!TK2MSFTN GP11.phx.gbl
!Xref: cpmsftngxa09.phx.gbl microsoft.public.dotnet.framework.aspnet:33027
!X-Tomcat-NG: microsoft.public.dotnet.framework.aspnet
!
!Ok thanks, I'll try that.
!
!Jurjen.
!
!"Stephajn Craig" <s.*****@NOSPAMfunsunvacations.com> wrote in message
!news:%2****************@TK2MSFTNGP10.phx.gbl...
!> You only need one copy of that folder in the root folder of your website.
!> So if your hosting company has created a virtual site for you, you won't
!> need to have the webctrl_client folder in their wwwroot folder, only at
!the
!> root of *your* site and that's it.
!>
!> HTH
!>
!> --
!> Stephajn Craig
!> "Jurjen de Groot" <in**@gits-online.nl> wrote in message
!> news:e3**************@TK2MSFTNGP10.phx.gbl...
!> > Stephajn,
!> >
!> > As I understand it the webctrl_client folder has to be located in the
!> > wwwroot, that works! Moving it within the project folder
!> > ..\wwwroot\test_treeview does seem to do the trick in the designer but
!> when
!> > running the web-app it doesn't work.
!> >
!> > If it HAS to be located in the ...\wwwroot there would probably be a
!> problem
!> > deploying the application to .NET hosting firms I would imagine.
!> >
!> > Did you get it to work locating the webctrl_Client within your project
!> > directory ?
!> >
!> >
!> > Jurjen.
!> >
!> >
!> >
!> > "Stephajn Craig" <s.*****@NOSPAMfunsunvacations.com> wrote in message
!> > news:ea**************@TK2MSFTNGP10.phx.gbl...
!> > > Make sure that you have the Web Controls installed on both machines.
!> > There
!> > > is a folder called Webctrl_client used by the Web Controls which must
!be
!> > in
!> > > the root of your website in order for this to work.
!> > >
!> > > --
!> > > Stephajn Craig
!> > > "Jurjen de Groot" <in**@gits-online.nl> wrote in message
!> > > news:O8**************@TK2MSFTNGP12.phx.gbl...
!> > > > Yes, I also run IIS on my development machine (p4 1.7G, 512mb,
!Window
!> > > > 2000 Professional)
!> > > >
!> > > >
!> > > >
!> > > >
!> > > >
!> > > >
!> > > > *** Sent via Developersdex http://www.developersdex.com ***
!> > > > Don't just participate in USENET...get rewarded for it!
!> > >
!> > >
!> >
!> >
!> >
!>
!>
!
!
!

Nov 17 '05 #7

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

Similar topics

1
by: Scott | last post by:
Hi everyone! My Access app. uses the ActiveX Treeview control to show a hierarchal structure of records. Each record has a name and a "parent" along with some other attibutes. For example: ...
4
by: John Winterbottom | last post by:
I've a requirement for a treeview control to display a master-detail view. So instead of the old the old 'ActiveX + 1,000 lines of code' method that I've used in the past. I decided to try a...
10
by: WJA | last post by:
I'm looking at building an application that needs to display 4 levels of hierarchical data. Initially the obvious choice for this would seem to be the treeview control. After searching this...
5
by: SoKool | last post by:
Can anyone point me to a site where I can get a free treeview control to use in ASP .NET or any tutorial that can help me build my own treeview control. I intend to use a treeview to generate a...
4
by: DS | last post by:
Can anyone think of a way or point me in the right direction to be able to get a multiline treeview? By this I mean that each TreeNode Label can span say 2 lines (delimited by \n)? Thanks! -Dan
6
by: L.M | last post by:
Hello, I knew how to use the treeview under VB6. After migrating to .NET, well, I'm lost. I try to add a new node, either to the same level or as a child to a selected node in the treeview....
4
by: Andrew Robinson | last post by:
I am using a TreeView to perform navigation and have a few nodes that need to generate a popup menu. For this, I use the SelectedNodeChanged event and then add the relevant "window.open" script to...
2
by: Eamon Millman | last post by:
Greetings, I'm fairly new to the new ASP.NET 2.0 controls and I'm trying to get the TreeView control to display some non-xml/sitemap data I want to have in a tree format. To accomplish this...
2
by: Grzesiek Sz | last post by:
Hi, Can anyone tell me how to load data into a treeview control. I'm using A2k. Can you give a example of treeview usage? Thanks Gregory
0
by: dutsnekcirf | last post by:
Okay, I think this one is a really hard one for yous geniuses out there. I'm going to try my best to explain in as much detail as I can. And for the most part I just want to know if I'm doing this...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...

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.