Server Error in '/' Application. Operation must use an updateable query. 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.OleDb.OleDbException: Operation must use an updateable query. Source Error: Line 29: cmd.Parameters.AddWithValue("Subject", subtext.Text); Line 30: cmd.Parameters.AddWithValue("Enquiry", enqtext.Text); Line 31: cmd.ExecuteNonQuery(); Line 32: cn.Close(); Line 33: Label2.Text = "Query Sent Thanks Will Response Shortly"; Source File: c:\inetpub\vhosts\sstscorp.com\httpdocs\contact.aspx.cs Line: 31 Stack Trace: [OleDbException (0x80004005): Operation must use an updateable query.] System.Data.OleDb.OleDbCommand.ExecuteCommandTextForSingleResult(tagDBPARAMS dbParams, Object& executeResult) +267 System.Data.OleDb.OleDbCommand.ExecuteCommandText(Object& executeResult) +192 System.Data.OleDb.OleDbCommand.ExecuteCommand(CommandBehavior behavior, Object& executeResult) +48 System.Data.OleDb.OleDbCommand.ExecuteReaderInternal(CommandBehavior behavior, String method) +106 System.Data.OleDb.OleDbCommand.ExecuteNonQuery() +108 contact.Button1_Click(Object sender, EventArgs e) in c:\inetpub\vhosts\sstscorp.com\httpdocs\contact.aspx.cs:31 System.Web.UI.WebControls.Button.OnClick(EventArgs e) +105 System.Web.UI.WebControls.Button.RaisePostBackEvent(String eventArgument) +107 System.Web.UI.WebControls.Button.System.Web.UI.IPostBackEventHandler.RaisePostBackEvent(String eventArgument) +7 System.Web.UI.Page.RaisePostBackEvent(IPostBackEventHandler sourceControl, String eventArgument) +11 System.Web.UI.Page.RaisePostBackEvent(NameValueCollection postData) +33 System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +1746 Version Information: Microsoft .NET Framework Version:2.0.50727.1433; ASP.NET Version:2.0.50727.1433
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)