“/UDS”应用程序中的服务器错误。
--------------------------------------------------------------------------------Must declare the variable '@Password'.
说明: 执行当前 Web 请求期间,出现未处理的异常。请检查堆栈跟踪信息,以了解有关该错误以及代码中导致错误的出处的详细信息。 异常详细信息: System.Data.SqlClient.SqlException: Must declare the variable '@Password'.源错误:
行 35: public int RunProc(string procName, SqlParameter[] prams) {
行 36: SqlCommand cmd = CreateCommand(procName, prams);
行 37: cmd.ExecuteNonQuery();
行 38: this.Close();
行 39: return (int)cmd.Parameters["ReturnValue"].Value;
源文件: C:\Inetpub\wwwroot\UDS\Components\Database.cs 行: 37 堆栈跟踪:
[SqlException: Must declare the variable '@Password'.]
System.Data.SqlClient.SqlCommand.ExecuteReader(CommandBehavior cmdBehavior, RunBehavior runBehavior, Boolean returnStream)
System.Data.SqlClient.SqlCommand.ExecuteNonQuery()
UDS.Components.Database.RunProc(String procName, SqlParameter[] prams) in C:\Inetpub\wwwroot\UDS\Components\Database.cs:37
UDS.Components.Staff.Login(String userName, String password) in C:\Inetpub\wwwroot\UDS\Components\Staff.cs:34
UDS.SubModule.Login.index.btnSubmit_Click(Object sender, EventArgs e) in C:\Inetpub\wwwroot\UDS\SubModule\Login\Index.aspx.cs:167
System.Web.UI.WebControls.Button.OnClick(EventArgs e)
System.Web.UI.WebControls.Button.System.Web.UI.IPostBackEventHandler.RaisePostBackEvent(String eventArgument)
System.Web.UI.Page.RaisePostBackEvent(IPostBackEventHandler sourceControl, String eventArgument)
System.Web.UI.Page.RaisePostBackEvent(NameValueCollection postData)
System.Web.UI.Page.ProcessRequestMain() +1277
--------------------------------------------------------------------------------
版本信息: Microsoft .NET Framework 版本:1.1.4322.573; ASP.NET 版本:1.1.4322.573
--------------------------------------------------------------------------------Must declare the variable '@Password'.
说明: 执行当前 Web 请求期间,出现未处理的异常。请检查堆栈跟踪信息,以了解有关该错误以及代码中导致错误的出处的详细信息。 异常详细信息: System.Data.SqlClient.SqlException: Must declare the variable '@Password'.源错误:
行 35: public int RunProc(string procName, SqlParameter[] prams) {
行 36: SqlCommand cmd = CreateCommand(procName, prams);
行 37: cmd.ExecuteNonQuery();
行 38: this.Close();
行 39: return (int)cmd.Parameters["ReturnValue"].Value;
源文件: C:\Inetpub\wwwroot\UDS\Components\Database.cs 行: 37 堆栈跟踪:
[SqlException: Must declare the variable '@Password'.]
System.Data.SqlClient.SqlCommand.ExecuteReader(CommandBehavior cmdBehavior, RunBehavior runBehavior, Boolean returnStream)
System.Data.SqlClient.SqlCommand.ExecuteNonQuery()
UDS.Components.Database.RunProc(String procName, SqlParameter[] prams) in C:\Inetpub\wwwroot\UDS\Components\Database.cs:37
UDS.Components.Staff.Login(String userName, String password) in C:\Inetpub\wwwroot\UDS\Components\Staff.cs:34
UDS.SubModule.Login.index.btnSubmit_Click(Object sender, EventArgs e) in C:\Inetpub\wwwroot\UDS\SubModule\Login\Index.aspx.cs:167
System.Web.UI.WebControls.Button.OnClick(EventArgs e)
System.Web.UI.WebControls.Button.System.Web.UI.IPostBackEventHandler.RaisePostBackEvent(String eventArgument)
System.Web.UI.Page.RaisePostBackEvent(IPostBackEventHandler sourceControl, String eventArgument)
System.Web.UI.Page.RaisePostBackEvent(NameValueCollection postData)
System.Web.UI.Page.ProcessRequestMain() +1277
--------------------------------------------------------------------------------
版本信息: Microsoft .NET Framework 版本:1.1.4322.573; ASP.NET 版本:1.1.4322.573
谢谢![email protected]