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 SkipVought on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Error:The @ command

Status
Not open for further replies.

Mun

Programmer
Mar 5, 2003
46
0
0
US
When I run my ASP page I can see this error.
Error:'The @ command must be the first command within the Active Server Page'

But my ASP page has <%@LANGUAGE=&quot;VBSCRIPT&quot;%> as the first command.Can you tell me what else is missing?



 
take it out. it is not needed as vbscript is the default langauge in ASP _________________________________________________________
for the best results to your questions: FAQ333-2924
[sub]01001111 01101110 01110000 01101110 01110100[/sub]
onpnt2.gif
[sup] [/sub]
 
Take out the quotations around VBScript. Should look like this:

<% @LANGUAGE=VBSCRIPT %> Everything is absolute. Everything else is relative.
 
Try a space between &quot;@&quot; and &quot;language&quot;.
 
I'm getting an error &quot;The call to Server.Execute failed while loading the page&quot; when I'm trying to run an asp page which has server.execute x

In another asp page I've
<%
x=&quot;/MyTest/index.asp&quot; %>

index.asp has
a=&quot;Hello&quot;
<%=a%>

Can you please give a look at it.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top