The information in this article applies to:
SUMMARYThis article assumes that you are familiar with HTML, Active Server Pages (ASP), and the Scripting Object Model (SOM). When you have a FORM tag on your ASP, and you enable the SOM either manually or by adding server-side Design-Time Controls (DTC) to the ASP, the FORM might no longer be functioning properly and errors might occur. This article describes the issues relating to ASPs with nested FORM tags and offers procedures to work around them. MORE INFORMATIONSample Scenario:If you have an ASP with the following FORM:
in the window_onload client event handler, (use the Script Outline of Visual InterDev's Interactive Development Environment (IDE) to go to the window_onload script block), you have the following code to initialize the textbox named text1:
Undesired BehaviorWhen you enable SOM (either manually or after dragging and dropping any DTCs to the ASP), and then view the ASP in a Web browser after enabling the SOM, the following errors or behaviors can occur:
This generally results in errors in two areas:
WorkaroundTo work around this problem, follow the steps below:
Because the above line is not editable from within Visual InterDev, you need to specify the FORM action handler in a separate function. In this case, you can modify the original ASP to manually submit the page as shown below:
The function "manualsubmit" is added to submit the form to the correct ASP, in this case, "action.asp:"
REFERENCESFor additional information, please click the article number below to view it in the Microsoft Knowledge Base: Q191969 PRB: Form Does Not Work When Using DTCs with Nested Form Tags Additional query words:
Keywords : kbVisID600 kbGrpASP |
Last Reviewed: August 31, 1999 © 2000 Microsoft Corporation. All rights reserved. Terms of Use. |