0.5米是多少分米:dreamweaver8进行“插入记录”后总是出现错误!哪位大虾指点一下,谢谢!

来源:百度文库 编辑:杭州交通信息网 时间:2024/05/05 22:45:00
插入记录代码如下:
<%@ Page Language="VB" ContentType="text/html" %>
<%@ Register TagPrefix="MM" Namespace="DreamweaverCtrls" Assembly="DreamweaverCtrls,version=1.0.0.0,publicKeyToken=836f606ede05d46a,culture=neutral" %>
<MM:Insert
runat="server"
CommandText='<%# "INSERT INTO user (usename, usepass) VALUES (?, ?)" %>'
ConnectionString='<%# System.Configuration.ConfigurationSettings.AppSettings("MM_CONNECTION_STRING_yyconn") %>'
DatabaseType='<%# System.Configuration.ConfigurationSettings.AppSettings("MM_CONNECTION_DATABASETYPE_yyconn") %>'
Expression='<%# Request.Form("MM_insert") = "loginfrm" %>'
CreateDataSet="false"
Debug="true"
>
<Parameters>
<Parameter Name="@usename" Value='<%# IIf((Request.Form("usena") <> Nothing), Request.Form("usena"), "") %>' Type="WChar" />
<Parameter Name="@usepass" Value='<%# IIf((Request.Form("usepa") <> Nothing), Request.Form("usepa"), "") %>' Type="Integer" />
</Parameters>
</MM:Insert>
<MM:PageBind runat="server" PostBackBind="true" />
<MM:Insert
runat="server"
CommandText="INSERT INTO user (usename, usepass) VALUES ("+request.form("usena")+"','"+request.form("usepa")+")"
ConnectionString='<%# System.Configuration.ConfigurationSettings.AppSettings("MM_CONNECTION_STRING_yyconn") %>'
DatabaseType='<%# System.Configuration.ConfigurationSettings.AppSettings("MM_CONNECTION_DATABASETYPE_yyconn") %>'
Expression='<%# Request.Form("MM_insert") = "loginfrm" %>'
CreateDataSet="false"
Debug="true"
><Parameters>
<Parameter Name="@usename" Value='<%# IIf((Request.Form("usename") <> Nothing), Request.Form("usename"), "") %>' Type="WChar" />
<Parameter Name="@usepass" Value='<%# IIf((Request.Form("usepass") <> Nothing), Request.Form("usepass"), "") %>' Type="Integer" />
</Parameters>
</MM:Insert>

错误提示;
Server Error in '/' Application.
--------------------------------------------------------------------------------

A page can have only one server-side Form tag.
Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code.

Exception Details: System.Web.HttpException: A page can have only one server-side Form tag.

Source Error:

An unhandled exception was generated during the execution of the current web request. Information regarding the origin and lo

请各位大虾帮忙!!
谢谢