Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

strange problem reading values with spaces 1

Status
Not open for further replies.

arkadia93

Programmer
Oct 19, 2006
110
GB
I am returning a few name fields from a table when logging users in e.g. in format 'Firstname Surname', and for some reason, when I set them as session variables and then try to read them into text boxes on other pages after the login, it seems to only read in the first part of the string before a space is reached. Has anybody else had this happen?
 
show us some code...

i think its has to do with double quotes...

-DNG
 
I have done a few Response.Writes and everything works fine when I am getting the value from the recordset and assigning it to the Session variable :

Session("ManagerName") = ObjRsetMgr.Fields("ManagerName")

But on the next page when I use this method of assigning the value to a textbox, I lose everything after the first space :

<tr>
<td width=198>Manager Name</td>
<td width=2>:</td>
<td width=300><INPUT type="text" NAME="ManagerName" maxlength=75 value=<%=Session("ManagerName")%>></td>
</tr>

 
as i said...try quotes around value...

<td width=300><INPUT type="text" NAME="ManagerName" maxlength=75 value="<%=Session("ManagerName")%>"></td>

-DNG
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top