Microsoft KB Archive/321072

= PRB: When You Disable Interdev Design Time Controls, They Appear as Not Supported in Internet Explorer 6.0 =

Article ID: 321072

Article Last Modified on 4/29/2003

-

APPLIES TO


 * Microsoft Visual InterDev 6.0 Standard Edition

-



This article was previously published under Q321072



SYMPTOMS
When you disable the Design Time Controls (for example, TextBox and ListBox), it appears as though Internet Explorer 6.0 does not support dynamic HTML (DHTML) controls. For example, if you try to get the value from the TextBox control by querying the value of the INPUT tag, you receive an error message because the INPUT tag does not exist in the HTML source code.



CAUSE
In an InterDev 6.0 ASP project, the PM.ASP file of the _ScriptLibrary specifies the different versions of Internet Explorer that are considered for DHTML compatibility. In the PM.ASP file, Internet Explorer 4. and Internet Explorer 5. are specified for DHTML compatibility. However, the PM.ASP file does not specify Internet Explorer 6. .



RESOLUTION
To resolve this problem, follow these steps:   Open the PM.ASP file from the _ScriptLibrary folder of your InterDev project, and then locate the following method: function _SOM_isDHTMLBrowser {          if (typeof(this._isDHTMLBrowser) == 'undefined') {           this._isDHTMLBrowser = false; var userAgent = String(Request.ServerVariables('HTTP_USER_AGENT')); if (userAgent.indexOf('MSIE 4.') != -1 ||               userAgent.indexOf('MSIE 5.') != -1) this._isDHTMLBrowser = true; }       return this._isDHTMLBrowser; }   Replace this method with the following: function _SOM_isDHTMLBrowser {          if (typeof(this._isDHTMLBrowser) == 'undefined') {           this._isDHTMLBrowser = false; var userAgent = String(Request.ServerVariables('HTTP_USER_AGENT')); if (userAgent.indexOf('MSIE 4.') != -1 ||               userAgent.indexOf('MSIE 5.') != -1 ||                userAgent.indexOf('MSIE 6.') != -1) this._isDHTMLBrowser = true; }       return this._isDHTMLBrowser; } 

Keywords: kbscript kbinetdev kbwebbrowser kbprb kbhtml kbdhtml kbcontrol KB321072

-

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

© Microsoft Corporation. All rights reserved.