Help and Support

Article ID: 918778 - Last Review: October 15, 2007 - Revision: 1.6

Code in an ASP page is removed, or an ASP page is not updated when you attach or change a Dynamic Web Template in SharePoint Designer 2007

Expand all | Collapse all

SYMPTOMS

You experience one or more of the following symptoms when you work with Dynamic Web Templates and with ASP pages in Microsoft Office SharePoint Designer 2007:
  • You attach a Dynamic Web Template to an ASP page. When you view the ASP page, you notice that some code in the ASP page has been removed. You do not receive a warning message before the code is removed from the ASP page.
  • You attach a Dynamic Web Template to an ASP page, and then you change some code in the Dynamic Web Template. When you view the ASP page, the ASP page is not updated with the changes that you made to the Dynamic Web Template. You experience this symptom even though SharePoint Designer 2007 displays a message that states that the ASP page is updated.

CAUSE

This problem occurs if one of the following conditions is true:
  • Code is located before the <html> tag or in the <head> tag in the ASP page.
  • Code is located before the <html> tag in the Dynamic Web Template.
If code is located before the <html> tag in an ASP page, this code is removed when you attach a Dynamic Web Template to the ASP page. When this occurs, notice that code in the DOCTYPE element is not removed. If code is located in the <head> tag in an ASP page, this code is removed when you attach a Dynamic Web Template to the ASP page.

If you change or add code that is located before the <html> tag in a Dynamic Web Template, the ASP page is not updated with these changes when you attach the Dynamic Web Template to an ASP page.

STATUS

Microsoft has confirmed that this is a problem in the Microsoft products that are listed in the "Applies to" section.

MORE INFORMATION

For more information about how to work with Dynamic Web Templates in SharePoint Designer 2007, click Microsoft Office SharePoint Designer Help on the Help menu, type dynamic Web template, and then click Search to view a list of relevant topics.

APPLIES TO
  • Microsoft Office SharePoint Designer 2007
Keywords: 
kbexpertiseinter kbpending kbbug kbasp kbtshoot KB918778

Article Translations

 

Related Support Centers