CodeVerge.Net Beta


   Explore    Item Entry   Register  Login  
Microsoft News
Asp.Net Forums
IBM Software
Borland Forums
Adobe Forums
Novell Forums




Can Reply:  No Members Can Edit: No Online: Yes
Zone: > NEWSGROUP > Asp.Net Forum > general_asp.net.master_pages_themes_and_navigation_controls Tags:
Item Type: NewsGroup Date Entered: 1/31/2008 8:40:22 PM Date Modified: Subscribers: 0 Subscribe Alert
Rate It:
NR
XPoints: N/A Replies: 1 Views: 55 Favorited: 0 Favorite
2 Items, 1 Pages 1 |< << Go >> >|
roopa1981
Asp.Net User
TreeView Node Text formatting1/31/2008 8:40:22 PM

0

Hi,

I am using a treeview control.

 

I want to format the text displayed in the control.

For ex, I want to display the text of node as node.Text = "Library                   book1".

Notice the space.  I want to give some space between the words.

However I notice that the control removes any extra spaces and makes it "Library book1".

 

What can I do to keep the spaces?

 

Thanks for the help.

-Roop 

SGWellens
Asp.Net User
Re: TreeView Node Text formatting2/1/2008 3:23:48 AM

0

Here's one way  (UBE)

    protected void Page_Load(object sender, EventArgs e)
    {
        foreach (TreeNode TNode in TreeView1.Nodes)
        {
            TNode.Text = TNode.Text.Replace(" ", "&nbsp");
        }
    }
 

(UBE: Ugly But Effective.)


Steve Wellens
2 Items, 1 Pages 1 |< << Go >> >|


Free Download:

Books:
Pro C# with .NET 3.0 Authors: Andrew Troelsen, Pages: 1186, Published: 2007
Pro C# 2005 and the .NET 2.0 platform Authors: Andrew W. Troelsen, Pages: 982, Published: 2005
ASP.NET 3.5 FOR DUMMIES Authors: Ken Cox, Pages: 428, Published: 2008
Pro VB 2005 and the .Net 2.0 platform Authors: Andrew Troelsen, Pages: 1034, Published: 2006
Microsoft.NET Compact Framework: kick start Authors: Erik Rubin, Ronnie Yates, Pages: 578, Published: 2003

Web:
c# Treeview Node with formatted text e.g. tabs & new lines - Stack ... Also, is it possible to add control characters to TreeNode's text e.g. '\t'? This same effect could also be achieved by adding columns to the TreeNode. is ...
TreeView Node Text formatting - ASP.NET Forums I am using a treeview control. I want to format the text displayed in the control. For ex, I want to display the text of node as node. ...
Treeview - Identify top level node - bytes Format("You clicked a parent node named {0}", node.Text)) Else Dim parent As TreeNode = node.Parent While Not parent.Parent Is Nothing ...
About the TreeView WebControl Another possibility that can be used to format text is to apply HTML directly to the Text attribute. Control API for Tree View (treeView) Defines the string of text displayed for the treeNode. HTML commands for text formatting (e.g. for bold characters) can be used.. tooltip ...

create a hyperlink on treenode - ng.asp-net-forum ... TreePad PLUS 4.6.1 new features Tree node text formatting ... RE: How to create a TreeView node with no image? Sep 19, 2006 ... I'm also playing with the ...
anyone know how to place multiple forms in a master page - ng.asp ... Dynamic QueryString in TreeView Nodes - ng.asp-net-forum ... anyone know how to place ... treeview node text is a format of two bound fields ...
How to read in a web page to a Text stream in C# - ng.asp-net ... Text namespace for this task. The ASCII class has a GetString() method which ... Iterating until all the bytes of a Web ... treeview node text formatting ...
treeView dynamic data source - ng.asp-net-forum ... treeview node text is a format of two bound fields · master control - a master page for user controls · master page template not showing up on all pages ...
[HOW TO] Skin a ValidatorCalloutExtender - ng.asp-net-forum ... more than one sitemaps · problem with multiple sitemaps · can one page have multiple master pages? treeview node text is a format of two bound fields ...

Videos:
Structuring Personal Information When Everything Can Be Saved ... Google TechTalks May 17, 2006 William Jones William Jones is an Research Associate Professor in The Information School at the University of ...
Structuring Personal Information When Everything Can Be Saved ... Google TechTalks May 17, 2006 William Jones William Jones is an Research Associate Professor in The Information School at the University of ...
Structuring Personal Information When Everything Can Be Saved ... Google TechTalks May 17, 2006 William Jones William Jones is an Research Associate Professor in The Information School at the University of ...
Structuring Personal Information When Everything Can Be Saved ... Google TechTalks May 17, 2006 William Jones William Jones is an Research Associate Professor in The Information School at the University of ...
Structuring Personal Information When Everything Can Be Saved ... Google TechTalks May 17, 2006 William Jones William Jones is an Research Associate Professor in The Information School at the University of ...












a page can have only one server-side form tag

treeview populatenode

make properties of a control on masterpage public?

cancel treeview node selection

images whithin theme folder

expand a tree view parent node when node text is selected

what would keep a skin from being applied

absolute paths, master pages, and visual studio's design view

firefox and the asp.net 2.0 menu control

changing master page removing content area

reload sitemap

treeview frozen

findcontrol, asp:content, and master pages

image on master page doesn't show

apply style to only master page

master page and firefox

web.sitemap

sitemap.currentnode error in sitemapresolve

web.sitemap - go nowhere

how to put expand all and collapse all button for a asp.net treeview control ?

accessing masterpage textbox value from default page.

how to add external url into sitemap

possible to modify the title of last node in sitemappath?

css not applied when viewed in browser.

how can i disable asp:menu items depending on the logged in user?

css position problem

navigation menu + css

error in path of masterpage

theme web.config

alligning a grid view in master page

 
Search This Site:

 
  Privacy | Contact Us
All Times Are GMT