PRB: Components Not Recognized When You Enable the Scripting Model
Article ID: 192146
Article Last Modified on 3/7/2005
APPLIES TO
- Microsoft Visual InterDev 6.0 Standard Edition
This article was previously published under Q192146
SYMPTOMS
When enabling the Scripting Object Model after controls/objects have
already been placed on an Active Server Pages (ASP) page, the
controls/objects will no longer be recognized for statement completion and
in the Script Outline. As a result, statement completion will not work and
you will now see the component in the Script Outline under the "thisForm"
object.
CAUSE
When the Scripting Object Model is enabled in ASP pages, the
controls/objects that have been inserted on the page are within the <FORM>
tags of the Scripting Object Model code. Therefore, any existing reference
to your controls/objects inside the <FORM> tags will no longer be
recognized as before.
RESOLUTION
You can change your code to reference the existing controls/objects through
the "thisForm" object.
STATUS
This behavior is by design.
Keywords: kbscript kbprb kbctrl kbpending KB192146