Forum Moderators: open
<option value="<%=(rs_processor.Fields.Item("component_description").Value)%><%=(rs_processor.Fields.Item("component_price").Value)%>"><%=(rs_processor.Fields.Item("component_description").Value)%>£<%=(rs_processor.Fields.Item("component_price").Value)%></option>
how do i get a tab space between the description and price
eg
20Gb Hard Disk £15.00
within the list box?
thanks
If it's in the value, I still wouldn't use tabs, but some type of delimiter. I generall use the pipe "¦" to delimit more than one db value in the value attribute, then have a function to parse the parts when I need to.
for i = 1 to maxProductLength - length(thisProduct)
response.write(" ")
next i
I don't know how the browser will render the multiple   chars, it might strip them out :(. You could try in plain HTML to make it look nice, then write the asp code to create the HTML.