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

printing a whole string

Status
Not open for further replies.

dcarbone

Programmer
Aug 22, 2003
29
CA
how can i get asp to print out an entire string stored in a variable

x = "hello world"
response.write(x)

this prints out only "hello"
 
that's scary

it prints fine here and don't think there's another way to write it out. is taht the exact code you are using
eg:
<%
x = &quot;hello world&quot;
Response.Write(x)
%>

_____________________________________________________________________
Where have all my friends gone to????
onpnt2.gif

 

sorry, i'm actually trying to print it to a textbox

<input type=text name=&quot;carr&quot; value= <% response.write(x) %> >
 
well there you go
this
<input type=text name=&quot;carr&quot; value= <% response.write(x) %> >
gives you this
<input type=text name=&quot;carr&quot; value=hello world>

see the problem?
there seems to be some missing &quot;'s [smile]




_____________________________________________________________________
Where have all my friends gone to????
onpnt2.gif

 
Also, The ASP forum ahs a great FAQ area. The entire
_General FAQ_ area is full of great beginner Q&A's

5 steps to asking a question
faq333-3811

ASP basics for beginners
faq333-3048

General FAQ
faq333-2924

The ASP Concept
faq333-3615

Then you can move to the next section
ASP 101 and gain a bunch of resources
and knowledge from readings alone from
the experts that have contributed

_____________________________________________________________________
Where have all my friends gone to????
onpnt2.gif

 
onpnt i think he is talking about this:
<input type=text name=&quot;carr&quot; value=&quot; <% response.write(x) %>&quot; >

without the &quot; in the next page u will get only hello. maybe thats what he means...


Known is handfull, Unknown is worldfull
 
That's what onpnt was saying:

&quot;see the problem?
there seems to be some missing &quot;'s &quot;
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top