PRB: Reapplying or Removing Layouts Produces Unexpected Results

ID: Q192149


The information in this article applies to:


SYMPTOMS

You may encounter unexpected results when applying or removing 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. If any of these comments are missing or altered, Visual InterDev will simply add 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.


STATUS

This behavior is by design.


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. Click the Apply Layout tab.


  5. Select Apply layout and theme.


  6. Select Bottom 1 from the list and click OK.


  7. Repeat steps 3 through 6 for Layout2.htm.


  8. Open Layout1.htm in Source view and delete the following comment:
    
          <!-- VI6.0LAYOUT = "Bottom 1"--> 


  9. Close Layout1.htm and save your changes.


  10. Repeat steps 3 through 5 to apply Left 1 layout to both Layout1.htm and Layout2.htm.


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


Additional query words:


Keywords          : kbide kbVisID600 kbGrpASP 
Version           : WINDOWS:6.0
Platform          : WINDOWS 
Issue type        : kbprb 

Last Reviewed: May 26, 1999