Rank: Newbie Groups: Member
Joined: 3/22/2008 Posts: 5
|
In my database I have a list of companies that I am loading into a TreeView control. One of the companies is AT&T. When it is loaded into the database, it displays as AT
AT&T displays AT&T AT& T displays AT& T
Unfortunately, I need to keep AT&T in my database (no & or blanks) and need it to display as AT&T
I have tested this with the latest download gotten from the website moments ago.
|
Rank: Administration Groups: Administration
Joined: 5/27/2007 Posts: 24,193
|
Hi,
This behavior is by design. The TreeView interprets what you feed to it as HTML, not plain text. This is necessary so that it's possible to have formatting information, such as color, font weight etc on the tree node text. So in your case, you will need to HTML encode the text either before feeding it to the TreeView (often in your SELECT statement), or after the node is populated by handling the TreeView's ItemCreated event and do the HTML encoding and modify the TreeNode's text there.
Thanks
|