PC Review


Reply
Thread Tools Rate Thread

Can a .dwt govern a .asp page?

 
 
Jeremy
Guest
Posts: n/a
 
      17th Nov 2004
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!


 
Reply With Quote
 
 
 
 
=?Utf-8?B?SmltIEJ1eWVucw==?=
Guest
Posts: n/a
 
      17th Nov 2004
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)
|/---------------------------------------------------
*----------------------------------------------------


"Jeremy" wrote:

> 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!
>
>
>

 
Reply With Quote
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Setting the Page Title using local resources for a content page in a master page Laith Zraikat Microsoft ASP .NET 3 6th Jul 2006 02:23 AM
Formula to govern Print Area kwrohde Microsoft Excel Misc 2 27th Apr 2006 01:24 PM
How to have 1 toolbar to govern all... =?Utf-8?B?U3RldmU=?= Microsoft Dot NET 4 24th Oct 2005 05:07 PM
single page or page range printing for multi page emails in outlo. =?Utf-8?B?RGVsIFBhdWxzb24=?= Microsoft Outlook Discussion 1 26th Apr 2005 07:41 PM
Report footer on separate page; optionally hide it, reduce total page count by 1, and don't print last (blank) page L Mehl Microsoft Access Reports 2 18th Sep 2003 01:49 AM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 04:04 PM.