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

only printing one word of sentence in textbox when retrieving from DB

Status
Not open for further replies.

cm80

Technical User
May 3, 2001
85
0
0
US
Hi,
I am using ASP to retrieve data from an Oracle database and printing the results in a textbox. However when the data I am retrieving is longer than 1 word only the first word is printed.

an example might explain a bit better!

<td>Address:</td>
<td><input type=&quot;text&quot; value=<%=rs4.fields(&quot;address&quot;)%> name=&quot;address&quot;></td>


The value I am retrieving from the database is for example:
&quot;North Main Street&quot;

but all that is being displayed in the textbox on the browser is &quot;North&quot;

Does anyone have any idea why this may be? Is there some way that I can fix it.
thanks

 
The above code wont work if u have data like this in u'r &quot;address&quot; field :

> North's main street.

the output will be .... > North

so be sure there are no ' in the fields ....m this is a general problem in ASP.


srinu
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top