PRB: Link Repair Does Not Work Within HTML Layout Files

Last reviewed: December 11, 1997
Article ID: Q172897
The information in this article applies to:
  • Microsoft Visual InterDev, version 1.0

SYMPTOMS

When link repair is turned on, relative references to other files from within an HTML Layout are not updated when files are moved or renamed.

CAUSE

Link repair is handled by the FrontPage Extensions installed on the Web server being used. HTML Layout files are not treated like "real" HTML files by FrontPage Extensions; therefore, link repair operations are not performed on them.

RESOLUTION

URLs and other references to files from within an HTML Layout file must be updated by hand, as necessary, when the files are moved or renamed.

STATUS

This behavior is by design.

MORE INFORMATION

When FrontPage Extensions does link repair on a file, it also reformats the file in an effort to make it more readable. Because of differences in the structure of HTML files and HTML Layout files, it is not safe to do automatic link repair on HTML Layout files.

HTML extensions are currently proposed that would allow the content of HTML Layout (*.alx) files to be embedded in-line within the body of an HTML page. If these extensions are accepted and implemented, *.alx files will no longer be necessary and this issue would become moot.

Steps to Reproduce Behavior

  1. Open or create a Web project.

  2. In the Project Workspace window, select the name of the project and use the Properties page to set Link Repair to "On."

  3. Create (and open) an HTML Layout in the project.

  4. Use the Toolbox to add an Image control to the layout.

  5. Use the Properties page of the Image control to set its PicturePath property to the relative location of a valid image file (for example, "images/MyValidPic.bmp").

  6. Save and close the layout.

  7. In the Project Workspace window, drag and drop the HTML Layout file to a different directory (move it to a new location).

  8. Open the HTML Layout.

  9. Examine the PicturePath property of the Image control.

Notice that the PicturePath property has not changed to account for the new, relative location of the image file.

REFERENCES

For the latest Knowledge Base articles and other support information on Visual InterDev and Active Server Pages, see the following page on the Microsoft Technical Support site:

   http://support.microsoft.com/support/vinterdev/

Keywords          : VIFPSE
Technology        : internet
Version           : WINDOWS:1.0
Platform          : WINDOWS
Issue type        : kbprb


================================================================================


THE INFORMATION PROVIDED IN THE MICROSOFT KNOWLEDGE BASE IS PROVIDED "AS IS" WITHOUT WARRANTY OF ANY KIND. MICROSOFT DISCLAIMS ALL WARRANTIES, EITHER EXPRESS OR IMPLIED, INCLUDING THE WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. IN NO EVENT SHALL MICROSOFT CORPORATION OR ITS SUPPLIERS BE LIABLE FOR ANY DAMAGES WHATSOEVER INCLUDING DIRECT, INDIRECT, INCIDENTAL, CONSEQUENTIAL, LOSS OF BUSINESS PROFITS OR SPECIAL DAMAGES, EVEN IF MICROSOFT CORPORATION OR ITS SUPPLIERS HAVE BEEN ADVISED OF THE POSSIBILITY OF SUCH DAMAGES. SOME STATES DO NOT ALLOW THE EXCLUSION OR LIMITATION OF LIABILITY FOR CONSEQUENTIAL OR INCIDENTAL DAMAGES SO THE FOREGOING LIMITATION MAY NOT APPLY.

Last reviewed: December 11, 1997
© 1998 Microsoft Corporation. All rights reserved. Terms of Use.