Microsoft KB Archive/918778

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

Article ID: 918778

Article Last Modified on 10/15/2007

-

APPLIES TO


 * Microsoft Office SharePoint Designer 2007

-





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 tag or in the tag in the ASP page.
 * Code is located before the tag in the Dynamic Web Template.

If code is located before the 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 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 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 &quot;Applies to&quot; 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.

Additional query words: SharePointDesigner2007

Keywords: kbtshoot kbbug kbpending kbasp kbexpertiseinter KB918778

-

[mailto:TECHNET@MICROSOFT.COM Send feedback to Microsoft]

© Microsoft Corporation. All rights reserved.