server.HTMLEncode

A

abcd

Simple but not working at this moment

I have to fill the HTML select control....

my values could be for example "test number 1"

sample code,

dim x
Data = "test number 1"

I am using

<Select>
<option value="<%Response.Write server.HTMLEncode(Data)%>"><%Response.Write
server.HTMLEncode(Data)%></option>
</Select>

as a result I can not see the longer black space between 2 words....I guess
HTMLEncode is not emitting &nbsp

any solution

thanks
 
B

Bob Lehmann

Server.HtmlEncode does not encode spaces. You will need to use the Replace
function to change spaces to &nbsp;.

Bob Lehmann
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
474,266
Messages
2,571,083
Members
48,773
Latest member
Kaybee

Latest Threads

Top