asp oddness , why specify ASP twice

Rob Williscroft rtw at freenet.co.uk
Wed Nov 26 18:36:17 EST 2008


davidj411 wrote in news:a08906ab-ba98-4ce0-a5f9-330f4b287423
@z27g2000prd.googlegroups.com in comp.lang.python:

> 
> for some reason this code works:
> *********************************************
> <%@ LANGUAGE = Python%>

The above is a Directive, in this case it tells ASP what language to use, 
but other options like the enocding of the script can be specified.

There can only be one directive block It must be the first thing in 
the asp file and it starts with an @ sign.

There is manual, http://msdn.microsoft.com/en-us/library/ms524664.aspx

Being MSDN I suggest you read it now as by next week microsoft will
have moved the content elsewhere (I'd add a smiley here, but it 
really isn't funny).

> <%
> Response.Write ("test")
> %>

Rob.
-- 
http://www.victim-prime.dsl.pipex.com/



More information about the Python-list mailing list