-
im populating a combobox control with a name and surname that comes out of my database but need to put a space inbetween the name and surname
otherwise the values look like this
JohnDOE
and i need it to be
John DOE
here is my coding for the options for the combobox control
how do i do it????
<option value="<%=(RSGroup.Fields.Item("GroupManagerID").Value)%>" ><%=(RSGroup.Fields.Item("ManagerName").Value)%><%=(RSGroup.Fields.Item("ManagerSurname").Value)%> </option>
-
Code:
<option value="<%=rsGroup.fields.item("GroupManagerID").Value%>">
<%=rsGroup.fields.item("ManagerName").Value & " " & rsGroup.fields.item("ManagerSurname").Value%></option>
-
Can't you just put an actual space in between them?
Code:
<option value="<%=(RSGroup.Fields.Item("GroupManagerID").Value)%>" ><%=(RSGroup.Fields.Item("ManagerName").Value)%> <%=(RSGroup.Fields.Item("ManagerSurname").Value)%></option>
Like that?
-
hehehe, we must have replied only a few seconds apart! :cool:
-
I noticed that...I tried to follow up with your statement with an example but it wouldn't let me put the in the code. After I posted and saw that it wasn't there, I figured you did the same thing and it just doesn't show up...I deleted it.
-
Ok, it did it again, in that code block it should say "& n b s p ;" but when I put it there, it treats it as a space...:confused:
-
-
Maybe it is a bug in the code tags? I would think that the code tags would not process those codes for just these reasons. Of showing examples. Maybe i will post something about this in the forum feedback section and see if they can fix it.