PRB: Reapplying or Removing Layouts Produces Unexpected Results (192149)



The information in this article applies to:

  • Microsoft Visual InterDev 6.0

This article was previously published under Q192149

SYMPTOMS

You may encounter unexpected results when you apply or remove layouts to pages in which the layout comments have been removed or altered.

CAUSE

Visual InterDev uses the comments inserted with the layouts to determine what code to remove when removing or re-applying layouts. By default, if any of these comments are missing or altered, Visual InterDev simply adds the code for the new layout without removing the code for the previously applied layout.

RESOLUTION

Do not edit the HTML comments inserted when applying layouts.

MORE INFORMATION

Steps to Reproduce Behavior

  1. Open Visual InterDev.
  2. Create two HTML pages named Layout1.htm and Layout2.htm.
  3. Right-click Layout1.htm and select Apply Theme and Layout.
  4. On the Apply Layout tab, click Apply layout and theme.
  5. Select Bottom 1 from the list and click OK.
  6. Repeat steps 3 through 5 for Layout2.htm.
  7. Open Layout1.htm in Source view and delete the following comment:
          <!-- VI6.0LAYOUT = "Bottom 1"-->
    					
  8. Close Layout1.htm and save your changes.
  9. Repeat steps 3 and 4 to apply Left 1 layout to both Layout1.htm and Layout2.htm.
  10. Open both Layout1.htm and Layout2.htm in Design view and notice the code the Bottom 1 layout is still present in Layout1.htm, but Layout2.htm has only the code for the Left 1 layout as expected.

Modification Type:MinorLast Reviewed:3/7/2005
Keywords:kbide kbprb KB192149