location of asp text vs html text

B

bbxrider

one of my fist asp pages
i have vbscript rountines that are sending page text with response.write
they are in the asp file before regular html text
yet the html text appears first on the page???
how do you control which text comes where
 
A

Andrew Paton

You put the HTML in the page where you want it to appear. e.g.

<h1> HTML </h1>
<%
response.write "response"
%>

Will display:

HTMLresponse

Where ever response.write is used it will wrtie to the screen even if it is
between HTML tags.

e.g. <img src="<%=varToWrite%>">
 
B

bbxrider

thanx what i found out since is what you have said here, i was generating
text at the server and that
seems to always appear at the page end, so i guess any of that text needs to
be saved in a variable
that can be used later in the mix of html and client side response.write
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,769
Messages
2,569,580
Members
45,055
Latest member
SlimSparkKetoACVReview

Latest Threads

Top