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!

Code Placement 1

Status
Not open for further replies.

flanakin

Programmer
Mar 21, 2000
158
US
How does ASP code execute? Is it logically, like JavaScript? Or does the server process all ASP code and then send the results to the client?

Example:
<code>
<html>
...
<sript>
var x
x = window.confirm(&quot;Name:&quot;)
</script>
...
<%
'...do functions and stuff...
Response.Write &quot;hello&quot;
%>
</code>

Basically, I'm wondering if the JS will process before the ASP at the end of the file. No, I'm not trying to make the two interact, I'm just wanting to better understand it's processing. Thanks. ~[ cid ]~
cid@cjd-web.com
 
As far as I know, if you use Response.Buffer = &quot;False&quot; (IIS3/PWS default) at the top of your asp page then it will proccess it logicly. If you use Response.Buffer = &quot;True&quot; at the top (windows 2000 IIS4 default) then it will proccess it all then send it to the client.

If you don't know the default for a remotely host script, it is best to but it at the top of every page.

I hope this id help full

Brent Newbury
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top