Problem with drop down list

  • Thread starter Thread starter rewf
  • Start date Start date
R

rewf

Hi, I fave this problem with a drop down list:
I have a drop down list that work with a database.
In the database I have some word with some spaces before like that
"Example
Example"
My problem is that i need this spaces, but when I run my web application the
disappear, because the html code don't permitt me to use it.
Someone can help me?
Thank you very much!

Daniele Bandirali
 
do a replace on your string; something like str1 = str1.replace(" ",
" ")

" " (no quotes) is the html representation of a space that won't be
removed upon display.

Josh Moody
VSU Team

--

This posting is provided "AS IS" with no warranties, and confers no rights.
Use of included script samples are subject to the terms specified at
http://www.microsoft.com/info/cpyright.htm

Note: For the benefit of the community-at-large, all responses to this
message are best directed to the newsgroup/thread from which they
originated.
--------------------
 
Back
Top