|
|
|||||||||
|
|||||||||
|
|||||||||
| |
|||
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Display Modes |
|
|
|
Ajax Application Generator Generate database and reporting .NET Web apps in minutes. Quickly create visually stunning, feature-rich apps that are easy to customize and ready to deploy. Download Now!
|
|
#1
|
|||
|
|||
|
I can't use the & character in a dropdownlist item text.
I'm trying to add multiple spaces to the text of a dropdownlist item so I need to use " "s because multiple normal spaces end up rendering as just 1. The problem is that when I try to use the "&" character it gets converted to "&". I can understand that for many situations this could be very useful but for my situation it's making what I want to do impossible. Is there any way to make it not convert these characters? Or to escape it? Or any other way to make this work?
__________________
Kind Regards, John Rebbeck john@interspire.com ICQ# 74637937 |
|
#2
|
|||
|
|||
|
Hello...
You can use ddlSomethng.DataTextFormatString = "{0:0} s" This will show Item s in your ddl _____________ Regards... Nauman Ahmed |
![]() |
| Viewing: Dev Articles Community Forums > Programming > .NET Development > I can't use the & character in a dropdownlist item text. |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|