hamid_1367
Member
آقا مشكل اين چيه؟
من وقتي مي خواهم يه سري اطلاعات وارد ديتابيس كنم اين مشكل رو مي ده.
من وقتي مي خواهم يه سري اطلاعات وارد ديتابيس كنم اين مشكل رو مي ده.
کد:
Server Error in '/WebApplication2' Application.
--------------------------------------------------------------------------------
Line 1: Incorrect syntax near ','.
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.Data.SqlClient.SqlException: Line 1: Incorrect syntax near ','.
Source Error:
Line 92:
Line 93: sqlcommandUsers.Connection.Open();
Line 94: sqlcommandUsers.ExecuteNonQuery();
Line 95: sqlcommandUsers.Connection.Close();
Line 96:
Source File: c:\inetpub\wwwroot\webapplication2\webform1.aspx.cs Line: 94
Stack Trace:
[SqlException: Line 1: Incorrect syntax near ','.]
System.Data.SqlClient.SqlCommand.ExecuteNonQuery()
WebApplication2.WebForm1.btnSend_Click(Object sender, EventArgs e) in c:\inetpub\wwwroot\webapplication2\webform1.aspx.cs:94
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()
--------------------------------------------------------------------------------
Version Information: Microsoft .NET Framework Version:1.0.3705.0; ASP.NET Version:1.0.3705.0