Link to home
Start Free TrialLog in
Avatar of salman_sulaiman_2008
salman_sulaiman_2008

asked on

How Can I Make a tree view similar to what is used in popular forums to show main subjects and their subs?

Geetings everyone!
I'll try to describe my problem clearly, it is a bit hard to explain, but here it is:
when I access many forums on the Internet they usually have what looks like a tree-like hirarchy at the very top of every web page to show you under which main subject and sub-subject is the article is under, and this tree-like structure contains hyperlinks, so I can click on the Main subject hyperlink so go back to the main article. I hope this makes sense. so I am trying to find a way to create something similar on my web site which I am using ASP.NET with, and Visual Studio 2005 as my IDE, I  thought of having a placeholder contorl and then during runtime I would create a hyperlinks and labels and palce them inside the placeholder control but it won't comeup neatly, I wonder if there is something else I could try to accomplish what I need.
thanks in advance.
~Salman~
Avatar of Jorge Paulino
Jorge Paulino
Flag of Portugal image

I think it's easy if you show us an example. Maybe a link.
Avatar of salman_sulaiman_2008
salman_sulaiman_2008

ASKER

Greetings Ipaulino!
thanks for the reply mate.
actually it is implemented here too, on Experts-exchange web site, if you look at the very top of the page, there is a hirarchy of main subject, and sub-subjects under it, looks like  this:
------------------
Home // Microsoft // Development // .NET // Visual Studio .NET 2005 // How Can I Make a tree view similar to what is used in popular forum...
--------------
but on experts-exchange they have it like a bar, instead of a tree-like, so if somehow I can replace the backslashes "//" with something like else so that whatever comes next becomes under the its main catagory, so it could look like this:

Home
|__Microsoft
       |__Development
             
but this would take too much space, so now I am thinking about it, it would be nice to have it like this:

Home --> Microsoft --> Developement --> .NET --> Visual Studio .NET 2005

now, my first thought when thinking of making such a thing is, to use hyperlinks and labels, so  the label would have the characters "-->" and the hyperlinks will have the titles. but is it how I should do it, or is there somekind of control which I should use?

~salman~
Home // Microsoft // Development // .NET // Visual Studio .NET 2005 // How Can I Make a tree view similar to what is used in popular forum... 

Open in new window

Greetings Ipaulino!
thanks for the reply mate.
actually it is implemented here too, on Experts-exchange web site, if you look at the very top of the page, there is a hirarchy of main subject, and sub-subjects under it, looks like  this:
------------------
Home // Microsoft // Development // .NET // Visual Studio .NET 2005 // How Can I Make a tree view similar to what is used in popular forum...
--------------
but on experts-exchange they have it like a bar, instead of a tree-like, so if somehow I can replace the backslashes "//" with something like else so that whatever comes next becomes under the its main catagory, so it could look like this:

Home
|__Microsoft
       |__Development
             
but this would take too much space, so now I am thinking about it, it would be nice to have it like this:

Home --> Microsoft --> Developement --> .NET --> Visual Studio .NET 2005

now, my first thought when thinking of making such a thing is, to use hyperlinks and labels, so  the label would have the characters "-->" and the hyperlinks will have the titles. but is it how I should do it, or is there somekind of control which I should use?

~salman~
Home // Microsoft // Development // .NET // Visual Studio .NET 2005 // How Can I Make a tree view similar to what is used in popular forum... 

Open in new window

ASKER CERTIFIED SOLUTION
Avatar of Jorge Paulino
Jorge Paulino
Flag of Portugal image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Greetings Ipaulino!
those were fantastic stuff mate! thanks for sharing with me those two links. for now the SiteMapPath would do the job for now, but the AJAX stuff are really amazing, man! it got me all excited, specially with the animation, I always wondered how to add animation to a web application quickly and neatly, AJAX just rocks!  
thanks again Ipaulino!
best wishes,
~salman~
Thanks for the grade salmanm. AJAX is really good and provide us very good stuff for the web pages.

Have fun with that and your pages will look fantastic.

Remark: jpaulino not Ipaulino :-)