Grant Palin
04-28-2004, 01:37 AM
I'm setting up and ASP page that includes header and footer files, header.asp and footer.asp, respectively.
I also have an index page, index.asp, that includes the first two files. Index.asp also contains some content, and so the index page should have a particular title.
I can include the first two files intot he third without a problem, but I try to create a page title variable int he index file, and display it in the header file inside the HTML title tag. Problem is, it doesn't work.
In index.asp:
<%
Dim PageTitle
PageTitle = "Population and Demographics"
%>
<!-- #include file="header.asp" -->
In header.asp:
<html>
<head>
<title><%= PageTitle %></title>
...
I know you can do this in PHP - I've done it. But it doesn't seem to work in ASP. Any suggestions?
I also have an index page, index.asp, that includes the first two files. Index.asp also contains some content, and so the index page should have a particular title.
I can include the first two files intot he third without a problem, but I try to create a page title variable int he index file, and display it in the header file inside the HTML title tag. Problem is, it doesn't work.
In index.asp:
<%
Dim PageTitle
PageTitle = "Population and Demographics"
%>
<!-- #include file="header.asp" -->
In header.asp:
<html>
<head>
<title><%= PageTitle %></title>
...
I know you can do this in PHP - I've done it. But it doesn't seem to work in ASP. Any suggestions?