Hi, How come my INCLUDE statements are just rpinting on the page as text instead of actually including the file?
<--#INCLUDE VIRTUAL="topnav.htm"-->
<--#INCLUDE VIRTUAL="sidenav.htm"-->
it just prints that as text. I have it in an aspx file.
Example code.
VB Code:
<%@ Page CodeBehind="specialeventinfo.aspx.vb" Language="vb" AutoEventWireup="false" Inherits="OptimaBackEndTest.specialeventinfo" %> <--#INCLUDE VIRTUAL="topnav.htm"--> <--#INCLUDE VIRTUAL="sidenav.htm"--> <script language="JavaScript"> <!-- function Validate(){ //v2.0 if(document.form.txtEventTitle.value == "" || document.form.txtFeatureText.value == ""){ alert("All fields must be filled in."); } } function MoveVars() { //v2.0 var title = document.form.txtEventTitle.value; var info = document.form.txtEventInfo.value; document.form2.PreTitle.value =title; document.form2.PreInfo.value =info; } //--> </script> <td valign="top"> <table width="549" height="97" border="0" cellpadding="10" cellspacing="2"> <tr>
thanks!![]()





Reply With Quote