<i><b>Originally posted by : reid (reid1@cal-tech.net)</b></i><br />here is the error message:<br /><br />Active Server Pages error 'ASP 0140' <br />Page Command Out Of Order <br />/trade/dir.asp, line 1 <br />The @ command must be the first command within the Active Server Page. <br /><br /><!--#include File="dir.asp"--><br />starts with<br /><br /><%@ Language=VBScript %><br /><%<br />'option explicit<br />%><br /><!--#include file="../inc/include.asp" --><br /><%<br />dim objConn, objRS, sql<br />dim id10, id20, id30, id40, id50, id60, id70, id80, id90, id100, id110, id120, id130, id140<br /><br />set objConn = Server.CreateObject("ADODB.Connection")<br />objConn.Open "provider=sqloledb;server=209.213.96.12;database=;u id=;pwd=;" (removed for security here)<br />set objRs = server.CreateObject("ADODB.Recordset")<br /><br />session("autkod") = ""<br />%><br /><br />it looks like @ is the first command to me.<br /><br /><br />
<i><b>Originally posted by : sriram</b></i><br />the command <%@ Language=VBScript %> should be in the first line of your page. The page does work however, even if u remove it altogether<br />Sriram<br /><br /><br /><br />------------<br />reid at 2/9/2000 11:08:24 AM<br /><br />here is the error message:<br /><br />Active Server Pages error 'ASP 0140' <br />Page Command Out Of Order <br />/trade/dir.asp, line 1 <br />The @ command must be the first command within the Active Server Page. <br /><br /><!--#include File="dir.asp"--><br />starts with<br /><br /><%@ Language=VBScript %><br /><%<br />'option explicit<br />%><br /><!--#include file="../inc/include.asp" --><br /><%<br />dim objConn, objRS, sql<br />dim id10, id20, id30, id40, id50, id60, id70, id80, id90, id100, id110, id120, id130, id140<br /><br />set objConn = Server.CreateObject("ADODB.Connection")<br />objConn.Open "provider=sqloledb;server=209.213.96.12;database=;u id=;pwd=;" (removed for security here)<br />set objRs = server.CreateObject("ADODB.Recordset")<br /><br />session("autkod") = ""<br />%><br /><br />it looks like @ is the first command to me.<br /><br /><br />
Was this answer helpful ?
Yes No