PRB: Form Does Not Work When Using DTCs With Nested <FORM> TagsID: Q191969
|
When you manually add <FORM></FORM> tags to an Active Server Pages (ASP) page, then drag and drop a text box DTC (or any other form-related DTC) on your page, and enable the Scripting Object Model, your form does not return any values.
The following dialog box appears when you drag and drop a textbox DTC (or any other form related design-time control (DTC) onto an Active Server Pages (ASP) page:
The design-time control requires the Visual InterDev Scripting Object Model. Would you like to enable the Scripting Object Model for this page?When you select Yes it will automatically add the following two script blocks to your Active Server Pages (ASP) page (marked with dark gray background in Visual InterDev):
Yes No Help
<% ' VI 6.0 Scripting Object Model Enabled %>
<!--#include file="_ScriptLibrary/pm.asp"-->
<% if StartPageProcessing() Then Response.End() %>
<FORM name=thisForm METHOD=post>
<% ' VI 6.0 Scripting Object Model Enabled %>
<% EndPageProcessing() %>
</FORM>
The first script block gets added between the <%@ Language=VBScript %> and
<HTML> tags, the second script block gets added between the </BODY> and
</HTML> tags.
Remove the form tags on the page that are not used by the Scripting Object Model.
This behavior is by design.
<%function Textbox1_onchange()
Response.Write Textbox1.value
end function%>
Keywords : kbVisID600 kbGrpASP
Version : WINDOWS:6.0
Platform : WINDOWS
Issue type : kbprb
Last Reviewed: May 5, 1999