Felmeddelande
Active Server Pages error 'ASP 0140'
Page Command Out Of Order
guestbook/Guestbook.asp, line 1
The @ command must be the first command within the Active Server Page.
Översta kodraderna i filen. Det märkligaste är att den fungerar när man inte försöker inkludera filen på en annan sida? Sidan jag försöker inkludera sidan på innehåller ingen sådan kod.
<%@ LANGUAGE="VBScript" %>
<%Session.LCID = 1053%>
<%Option Explicit
Response.Buffer=True
Response.Expires=-1
%>
<!--#include file="guestbook/inc_Settings.asp"-->
<!--#include file="guestbook/inc_Db.asp"-->
<%
Function SQLEncode(strValue)
If blnMySQL Then
SQLEncode=Replace(Replace(strValue,"\","\\"),"'","\'")
Else
SQLEncode=Replace(strValue,"'","''")
End If
End Function
Dim rstList 'recordset för inläggen
Dim lngPage 'aktuell sida
Dim lngPages 'antal sidor
Dim strWeb 'webbadress
Dim lngCnt 'räknare
Dim strScript 'sidans adress
Dim blnAdmin 'om inloggad som admin
' hämta aktuell sida
lngPage=CLng("0" & Request.QueryString("page"))
' plocka upp sidans adress
strScript=Request.ServerVariables("SCRIPT_NAME")
' koppla upp mot databasen
Call Connect
' kolla ifall det finns formulärdata