Anthony Jones wrote:
>I want to know the difference and effect of placing ASP Code
in the begining of .asp File and placing code inside <Head>
</HeadTag and Placing code inside <body></bodytag...
From ASP's perspective <heador <bodyhave no meaning, they
are simply chunks of literal strings that need to be sent to
the client. These tags only have meaning to browser client
that is able to a parse HTML...
While it is true that the ASP parser does not care a whit about the text of
the Response stream, it should be noted that there is at least one
circumstance under which it is imperative that the server-side processing
precede any output.
If the script reaches the decision to send a Response.Redirect(), for
example, the body of the response must be empty. This has been transparent
to most ASP programmers, as buffering has defaulted to [True] since IIS 5.
But in the odd case that buffering is disabled, any Response.Redirect() call
must precede any output to the response body.
--
Dave Anderson
Unsolicited commercial email will be read at a cost of $500 per message. Use
of this email address implies consent to these terms.