Can a .dwt govern a .asp page?

J

Jeremy

My search.asp page works fine. But if I apply a .dwt template to it, it
stops working. Can .dwt files be used to govern .asp pages?

Many thanks in advance!
 
J

Jim Buyens

Yes, unless you had ASP code in the <head> section, and then the DWT
overwrote the <head> section.

In such a case, either move the code from the <head> section to the first
line after <body>, or mark your ASP code as editable (as shown below).'

<head>
<!-- #BeginEditable "asphead" -->
<%
If Session("loggedin") <> "1" Then
response.clear
response.redirect "login.asp"
End If
%>
<!-- #EndEditable -->
</head>

Jim Buyens
Microsoft FrontPage MVP
http://www.interlacken.com
Author of:
*----------------------------------------------------
|\---------------------------------------------------
|| Microsoft Office FrontPage 2003 Inside Out
||---------------------------------------------------
|| Web Database Development Step by Step .NET Edition
|| Microsoft FrontPage Version 2002 Inside Out
|| Faster Smarter Beginning Programming
|| (All from Microsoft Press)
|/---------------------------------------------------
*----------------------------------------------------
 
Top