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 gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Problem displayin on text box 1

Status
Not open for further replies.

EdRev

Programmer
Aug 29, 2000
510
US
I have a phone number record on my database (i.e. (310) 555-6666). When I tried to display it on a text box, the only string that gets displayed is (310). The record got displayed properly when I write (Response.write) it to a page. The field data type on my database is text.

Any help will be greatly appreciated.

thanks,
 
Ed,

More information, like the code that put's the field data into the text box. :-0

-pete
 
do you mean a textarea or an text type input tag?
if the problem is with using a text type input tag:
<input type=&quot;text&quot; name=&quot;name&quot; value=&quot;<%=strValue%>&quot;>
then it is probably caused by you forgetting to use quotes round the value attribute in the HTML.
if your problem happens when you are using a textarea tag, then i don't know what is causing the problem.
i hope this helped
 
thank you guys for your reply,

this was the offending code:

<tr><td>Telephone:&nbsp;<input type=&quot;text&quot; name=&quot;area_tel&quot; size=15 value=<%=areaset(&quot;area_tel&quot;)%>>,

and when I enclosed the whole value in a double quote, it worked.

thanks again.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top