Code in Active Server Page is deleted when you attach a DWT template in FrontPage 2003 (830984)
The information in this article applies to:
- Microsoft Office FrontPage 2003
SYMPTOMSIn Microsoft Office FrontPage 2003, when you attach a
Dynamic Web Template (*.dwt) to an Active Server Page (*.asp) that contains
code (for example, code that creates a connection to a database), the code may
be deleted.CAUSEThis behavior occurs if you attach a Dynamic Web
Template (*.dwt) to an Active Server page (*.asp). When you attach a DWT file to an ASP page, everything outside the HTML
tags and several items outside the BODY tags of your Web page are deleted.WORKAROUNDTo work around this behavior, use one of the following methods.Method 1Switch to the HTML view, and then move your ASP code into the BODY section of the HTML document. When the DWT is applied, your code will be preserved.Method 2 Remove the code from your ASP page, and then attach your DWT file. After the DWT has been applied, switch to the HTML view, and then paste your ASP code inside one of the manageable regions.
Modification Type: | Minor | Last Reviewed: | 1/6/2006 |
---|
Keywords: | kbtemplate kbASP kbprb KB830984 kbAudEndUser kbAudDeveloper |
---|
|