BUG: Source Code Changed Switching Between Design & Source View in InterDev

ID: Q238508


The information in this article applies to:
  • Microsoft Visual InterDev, version 6.0


SYMPTOMS

When switching from Source View to Design View and back, Visual InterDev's Design View editor may change source code, and in some very specific cases, may insert errors into the source code.

This can happen if:

  • The page contains an IFRAME tag

    -and-


  • The <BASE> HTML tag appears in the document header

    -and-


  • The body contains any in-line ASP script delimiters.



CAUSE

This is a known bug with the Visual InterDev Design View editor.


RESOLUTION

Remove the <BASE> tag, edit the document, and replace the <BASE> tag when finished.

The <BASE> tag is an optional tag that prevents a document from being viewed 'out of context' such as in another site's frameset.


STATUS

Microsoft has confirmed this to be a bug in the Microsoft products listed at the beginning of this article.


MORE INFORMATION

Steps to Reproduce Behavior

Paste the following code into an ASP page in Source View:

<%@Language=VBScript %>
  <HTML>
  <HEAD>
  <TITLE>Title<%Request.Form("otherpage")%></TITLE>
  <BASE>
  </HEAD>
  <BODY>
  <%%>
  <IFRAME></IFRAME>
  </BODY>
  </html> 
Switch between Source and Design View and back. The code will be changed to:


<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD><TITLE>Title<%Request.Form("otherpage")%></TITLE>
<META content="text/html; charset=unicode" http-equiv=Content-Type><%@Language=VBScript %>
  <BASE>
<META content="MSHTML 5.00.2614.3401" name=GENERATOR></HEAD>
<BODY><%%>
  <IFRAME></IFRAME>
  </BODY>
  </html> 

Additional query words:

Keywords : kbVisID600bug
Version : WINDOWS:6.0
Platform : WINDOWS
Issue type : kbbug


Last Reviewed: September 22, 1999
© 2000 Microsoft Corporation. All rights reserved. Terms of Use.