Microsoft Knowledge Base Email Alertz

(830984) - In 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.

Search KbAlertz

Advanced Search

Receive Microsoft Knowledge Base articles by E-Mail?

Every night we scan the Microsoft Knowledge Base. If technologies you're interested in are updated, we'll send you an e-mail. You only get one e-mail a day, and only when new articles are added.

Click here to create a
FREE account
Already have an account?
[Click here to Login]











Microsoft Knowledge Base Article

This article contents is Microsoft Copyrighted material.
©2005-©2007 Microsoft Corporation. All rights reserved. Terms of Use | Trademarks

Article ID: 830984 - Last Review: June 13, 2007 - Revision: 3.2

Code in Active Server Page is deleted when you attach a DWT template in FrontPage 2003

On This Page

SYMPTOMS

In Microsoft Expression Web, in Microsoft Office SharePoint Designer, or in Microsoft Office FrontPage 2003, you attach a Dynamic Web Template (.dwt) to an Active Server Page (.asp) that contains code. For example, the code creates a connection to a database. When you do this, the code may be deleted.

CAUSE

This 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.

WORKAROUND

To work around this behavior, use one of the following methods.

Method 1

Switch 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.

APPLIES TO
  • Microsoft Office SharePoint Designer 2007
  • Microsoft Expression Web
  • Microsoft Office FrontPage 2003
Keywords: 
kbtemplate kbasp kbprb KB830984
       

Community Feedback System

Very often, it takes hours to solve a problem. Very often, you've looked high and low, and have tried a lot of solutions. When you finally found it, chances are, it was because someone else helped you. Here's your chance to give back. Use our community feedback tool to let others know what worked for you and what didn't.

Please also understand that the community feedback system is not warranted to be correct, it's simply a system that we've built to let people try and help each other. If something in a feedback response doesn't make sense to you, or you're not comfortable making changes that the feedback talks about (like registry edits), please consult a professional.

Thank you for using kbAlertz.com Feedback System.

-- Scott Cate