السلام عليكم
لدي هذا المشروح في الasp
ول شي صحيح ماعد هذه الجملة للتعديل
Update.Connection = DBConn
Update.CommandType = CommandType.Text
Update.CommandText = "update table set name=? , Password=? ,EmergencyContact=? where LoginID = '" & Session("login") & "';"
Update.Parameters.Clear()
Update.Parameters.Add("?", name.Text)
Update.Parameters.Add("?", tbPwd.Text)
Update.Parameters.Add("?", tbContact.Text)
Update.ExecuteNonQuery()
DBConn.Open()
عند تنفيذ الصفحة يظهر الخطا
Exception Details: System.Data.OleDb.OleDbException: Syntax error in UPDATE statement.
Source Error:
An unhandled exception was generated during the execution of the current web request. Information regarding the origin and location of the exception can be identified using the exception stack trace below.
Stack Trace:
[OleDbException (0x80040e14): Syntax error in UPDATE statement.]
System.Data.OleDb.OleDbCommand.ExecuteCommandTextErrorHandling(Int32 hr) +41
System.Data.OleDb.OleDbCommand.ExecuteCommandTextForSingleResult(tagDBPARAMS dbParams, Object& executeResult) +174
System.Data.OleDb.OleDbCommand.ExecuteCommandText(Object& executeResult) +92
System.Data.OleDb.OleDbCommand.ExecuteCommand(CommandBehavior behavior, Object& executeResult) +65
System.Data.OleDb.OleDbCommand.ExecuteReaderInternal(CommandBehavior behavior, String method) +112
System.Data.OleDb.OleDbCommand.ExecuteNonQuery() +66
System.Web.UI.WebControls.Button.OnClick(EventArgs e) +108
System.Web.UI.WebControls.Button.System.Web.UI.IPostBackEventHandler.RaisePostBa
ckEvent(String eventArgument) +57
System.Web.UI.Page.RaisePostBackEvent(IPostBackEventHandler sourceControl, String eventArgument) +18
System.Web.UI.Page.RaisePostBackEvent(NameValueCollection postData) +33
System.Web.UI.Page.ProcessRequestMain() +1292




