FIX: Migrating Visual InterDev 1.0 ASPs to Visual InterDev 6.0 (215338)



The information in this article applies to:

  • Microsoft Visual InterDev 1.0
  • Microsoft Visual InterDev 6.0

This article was previously published under Q215338

SYMPTOMS

If you have Active Server Pages (ASP) pages that contain ActiveX Controls (<OBJECT>) with attributes that contain embedded ASP code, the embedded ASP code may become corrupted.

For example, ASP/HTML code that reads the following:
<OBJECT classid="clsid:8E27C92B-1264-101C-8A2F-040224009C02" 
        id=Calendar1 style="LEFT: 0px; TOP: 0px" 
        codebase="<%=mycodebase%>">
				
Would be corrupted and look like the following:
<OBJECT classid="clsid:8E27C92B-1264-101C-8A2F-040224009C02" 
        id=Calendar1 style="LEFT: 0px; TOP: 0px" 
        codeBase=<%=mycodebase%>
>
				

CAUSE

The cause for this is a bug in the way the object tag information is parsed before it is stored.

RESOLUTION

The bug in the parser has been resolved in Internet Explorer 5. To fix this bug, install Internet Explorer 5.

If you cannot install Internet Explorer 5, there are currently two work arounds for this problem with Internet Explorer 4.
  • Typically, the embedded ASP code will be something like this:
    <OBJECT codebase = "<%=mycodebase%>">
    						
    Modify that line to include a space between the % and the =, as in the following example:
    <OBJECT codebase = "<% =mycodebase%>">
    						
    -or-
  • The parsing bug shows up when Always view as text is turned off. You can avoid the bug by selecting Always view as text.

STATUS

Microsoft has confirmed that this is a bug in the Microsoft products that are listed at the beginning of this article.

Modification Type:MajorLast Reviewed:10/15/2002
Keywords:kbBug kbCtrl kbDSupport KB215338