I couldn\'t find much documentation on the web
so far now, the obvious difference seems to be that you cant mix html and vbscript using the \"script\" tag
fo
I've just had an issue on this matter and, for practical purposes, the code inside <% %> tags executes before code inside <script runat="server"> </script>.
The declaration of functions and procedures seems not to be affected by this difference in the way IIS understands the Classic ASP tags -- at least as I don't use conditional code loading with "Server.Execute".
my server runs Microsoft-IIS/5.1 as in Request.ServerVariables("SERVER_SOFTWARE").
First off you need to understand that there's a difference in the way server-side script tags are handled depending on whether the language specified is the same as the default language for the page.
The order is this:-
<script runat="server" tags where the language specified does not match the default language. These are executed in document order.runat="server" tags or inside <% %>) and any intervening code in <% %> again in document order obviously.<script runat="server" tags where the language matches the default script language.Note that all script has an initial parse before executing phase 1, hence any functions that may be defined by scripts run in phase 3 will be available for calling from phase 1.