473,372 Members | 1,076 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,372 software developers and data experts.

Customizing TreeView control appearance (asp.net 2.0)

I want to use a TreeView control as a one-level, vertical navigation
menu. I'm using this control currently with a SiteMapDataSource
and .sitemap file. I've written code that associates an image with
each TreeView node based upon a custom attribute I have included in
the siteMapNode nodes of my .sitemap file. This all works as desired,
including the security trimming which is especially desired behavior.
The nodes of the TreeView displays, from left to right, an image and
the title text (both from the .sitemap file).

What I want to do differently is to place the title text UNDER the
associated image, instead of to the right of it. The overall effect
is to have all the TreeView nodes (images and text) either centered or
left justified. I want to use the TreeView in this manner as it
(assuming I can get this to work) will give me a nice-looking,
vertical menu that doesn't take up a lot of horizontal space. In
other words, this will be used as an icon-based "menu strip" that will
run down the left side of my website. It will just happen to have
text under each icon. I want to use the TreeView control since it
ties in nicely with the asp.net 2.0 security model (i.e. security

I suppose I could write a custom control that does all of this, but
I'd like to make the TreeView control work since all this security
functionality is already built-in. I can also use the asp.net 2.0
Menu control, if it is easier to achieve the results I want with that
control. Any help would be much appreciated.


Feb 13 '07 #1
0 1967

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

Similar topics

by: HarryD | last post by:
Hello, Maybe someone can help? According to ms kb-article 183329 i am trying to populate a treeview object on a asp-page, with realtime data from a accessdatabase. The database routine works...
by: HarryD | last post by:
Hello, Maybe someone can help? According to ms kb-article 183329 i am trying to populate a treeview object on a asp-page, with realtime data from a accessdatabase. The database routine works...
by: timtos | last post by:
I want to customize the appearance of node text in a treeview control. Ive found an article about including the paint event for a treeview control but it seems that I need to catch up another win32...
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...
by: Peter | last post by:
Hello, We are inserting a side menu to our application using a class that is writing HTML on all our pages. This is a part of the code as an example: writer.Write(" <table WIDTH=""100%""...
by: Hazz | last post by:
I am using the Winforms Treeview right out of the toolbox with all the default settings. It looks very boring. What can I do to dress it up and make it look at least kind of cool? I remember...
by: Athan | last post by:
I use MS activex treeview control in my asp pages. The problem I have is that some computers display the treeview with no problems while others display the control without the text on the nodes. I...
by: p3t3r | last post by:
I have a treeview sourced from a SiteMap. I want to use 2 different CSS styles for the root level nodes. The topmost root node should not have a top border, all the other root nodes should have a...
by: makennedy | last post by:
Hi Experts, Please help, I am a newbie to ASP.NET 2.0 may be I am doing something wrong or there may be a bug somewhere. Basically I have a TreeView Control which I have created...
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 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 former...
by: ryjfgjl | last post by:
In our work, we often need to import Excel data into databases (such as MySQL, SQL Server, Oracle) for data analysis and processing. Usually, we use database tools like Navicat or the Excel import...
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
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$) { } ...
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
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
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...

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.