Alexandre,
But it does not work exactly as you are saying. The reason I posted this question was I was trying your suggestion on the dropdownlist (last Friday). But the dropdownlist shows values of "nbsp" and not the space as we exact. That is when I try .Replace(" ","nbsp;") or .Replace(" "," ") the literal value is set in the dropdownlist.
>Dimitry all depends on where you are using that, i.e. if you use that on a textbox.text then you will see the value and not the space, while if you use it on a dropdownlist item you will see the space and not the string, so as you can see all depends where you are using it.
>
>>I need to figure out how to set a value of the HTML entity NBSP ( Ampersand + NBSP + Semicolon) into a string so that the browser will interpret it as an HTML special character and not a literal character.
>>
>>For example, if I do
>>
>>
>>string mystreen = "&"+ "nbsp" + ";" ;
>>
>>
>>The browser will show this string literally. But this is NOT what I want.
>>
>>Thank you for any suggestions.
"The creative process is nothing but a series of crises." Isaac Bashevis Singer
"My experience is that as soon as people are old enough to know better, they don't know anything at all." Oscar Wilde
"If a nation values anything more than freedom, it will lose its freedom; and the irony of it is that if it is comfort or money that it values more, it will lose that too." W.Somerset Maugham