Microsoft KB Archive/238508

= BUG: Source Code Changes When You Switch Between Design and Source View in InterDev =

Article ID: 238508

Article Last Modified on 10/16/2002

-

APPLIES TO


 * Microsoft Visual InterDev 6.0 Standard Edition

-



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  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  tag, edit the document, and replace the  tag when finished.

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



Steps to Reproduce Behavior
Paste the following code into an ASP page in Source View: <%@Language=VBScript %>   Title<%Request.Form("otherpage")%>   <BODY> <%%> <IFRAME></IFRAME> </BODY> 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>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>

Keywords: kbbug kbpending KB238508

-

[mailto:TECHNET@MICROSOFT.COM Send feedback to Microsoft]

© Microsoft Corporation. All rights reserved.