will
include my functions.asp. In all other files I will only include the
header
file to get my header and get my Global functions and vars.
Here my Files (header.asp)
=====================================================
<%@LANGUAGE="VBSCRIPT" CODEPAGE="1252"%>
<%
Server.Execute("/monitorex/config/config.asp")
%>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
"
http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<!-- #include virtual="/monitorex/config/functions.asp" -->
<title>Monitoring MS Exchange Server</title>
<link href="/monitorex/style.css" rel="stylesheet" type="text/css">
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
</head>
=====================================================
other file
=====================================================
<!-- #include virtual="/monitorex/config/header.asp" -->
<p align="center"><font size="+2">Overview of Events</font> </p>
<hr><br>
<%
on error resume next
if Request.QueryString("query") = "true" then
Dim counter
Dim strComputer
Dim strEventID
counter = 0
strComputer = Request.Form("strComputerName")
strEventID = Request.Form("strEventID")
%>
<p><%=test%></p>
======================================================
complete functions.asp
======================================================
<%
Function WMIDateStringToDate(dtmDate)
WMIDateStringToDate = CDate(Mid(dtmDate, 5, 2) & "/" & _
Mid(dtmDate, 7, 2) & "/" & Left(dtmDate, 4) _
& " " & Mid (dtmDate, 9, 2) & ":" & _
Mid(dtmDate, 11, 2) & ":" & Mid(dtmDate, _
13, 2))
End Function
CONST Test = "Testing 1111 1 1 11"
%>
======================================================
What is wrong? I am at the end
:
Your syntax is wrong:
<!--#include virtual="/monitorex/config/functions.asp" //-->
should be:
<!-- #include virtual="/monitorex/config/functions.asp" -->
and you should only be using "virtual" if the functions.asp file