Forum Moderators: open

Message Too Old, No Replies

Space problem in text box in ASP

Need help here is problem in code

         

baistopgun

11:51 am on Oct 5, 2004 (gmt 0)

10+ Year Member



Response.Write "<b><input type=text name=name value=" & CStr(objRS("empname")) & "></b><br>"

hey there i am using this code to get data from access table right , in acces table it shows name like lets say MOHAN KUMAR but when i run page containg this code it show only MOHAN in text box

makeupalley

2:10 pm on Oct 5, 2004 (gmt 0)

10+ Year Member



Try either one of these:

1. Response.Write "<b><input type=text name=name value='" & CStr(objRS("empname")) & "'></b><br>"

2. Response.Write "<b><input type=text name=name value=" & chr(34) & CStr(objRS("empname")) & chr(34) & "></b><br>"

This should solve your problem.

:)

Elky

baistopgun

5:31 pm on Oct 5, 2004 (gmt 0)

10+ Year Member



Thanx this has solved the problrm thank you very much
Response.Write "<b><input type=text name=name value=" & chr(34) & CStr(objRS("empname")) & chr(34) & "></b><br>"

Reagrds

bye take care