BUG: Source Code Changes When You Switch Between Design and Source View in InterDev (238508)



The information in this article applies to:

  • Microsoft Visual InterDev 6.0

This article was previously published under Q238508

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 that this is a bug in the Microsoft products that are 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>
				

Modification Type:MajorLast Reviewed:10/16/2002
Keywords:kbBug kbDSupport KB238508