我有一个更新表格的过程,该过程将从网格视图中的网络表单中调用。我不断收到“程序或函数 FraudAlertUpdateMobileNo 指定了太多参数”,但传递的参数数量正确 下面是我的数据源代码:
<asp:SqlDataSource ID="ConfigByAcct" runat="server" ConnectionString="<%$ ConnectionStrings:FraudAlertsConnectionString %>"
SelectCommand="FraudAlertsConfigAcct" SelectCommandType="StoredProcedure"
UpdateCommand="FraudAlertUpdateMobileNo" UpdateCommandType="StoredProcedure" >
<SelectParameters>
<asp:ControlParameter ControlID="inst" Name="INSTID" PropertyName="SelectedValue" Type="Int32" />
<asp:ControlParameter ControlID="txtValue" Name="ACCTNUM" PropertyName="Text" Type="Int64" />
</SelectParameters>
<UpdateParameters>
<asp:ControlParameter ControlID="inst" Name="INSTID" PropertyName="SelectedValue" Type="Int32" />
<asp:Parameter Type ="Int64" Name ="ACCTNUM" />
<asp:Parameter Type ="String" Name ="SMSAlertTo" />
<asp:Parameter Type ="String" Name ="FullName" />
<asp:Parameter Type ="String" Name ="Application" DefaultValue="AlertWeb" />
</UpdateParameters>
</asp:SqlDataSource>
下面是我的程序代码
CREATEPROCEDURE [dbo].[FraudAlertUpdateMobileNo](
@InstID int,
@ACCTNUM bigint,
@MobileNo varchar(500),
@FullName varchar(250),
@Application varchar(50)
)
AS