ciao, durante un inserimento in database access mi da questo messaggio: uso aspx
Server Error in '/' Application.
--------------------------------------------------------------------------------
Per l'operazione è necessaria una query aggiornabile.
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: Per l'operazione è necessaria una query aggiornabile.
Source Error:
Line 92: dstAds.Tables("ads").Rows.Add(rowAds)
Line 93:
Line 94: dapAds.Update(dstAds, "ads")
Line 95: lblOKMsg.Text = "Ad " & rowAds("adid") & " posted."
Line 96: ancUpload.href = "ad-pic.aspx?id=" & rowAds("adid")
Source File: D:\Inetpub\wwwroot\aspx\reg\ad-new.aspx Line: 94
Stack Trace:
[OleDbException (0x80004005): Per l'operazione è necessaria una query aggiornabile.]
System.Data.Common.DbDataAdapter.Update(DataRow[] dataRows, DataTableMapping tableMapping) +1662
System.Data.Common.DbDataAdapter.Update(DataSet dataSet, String srcTable) +152
ASP.ad_new_aspx.PostNewAd(Object sender, EventArgs e) in D:\Inetpub\wwwroot\aspx\reg\ad-new.aspx:94
System.Web.UI.WebControls.Button.OnClick(EventArgs e) +108
System.Web.UI.WebControls.Button.System.Web.UI.IPo stBackEventHandler.RaisePostBackEvent(String eventArgument) +57
System.Web.UI.Page.RaisePostBackEvent(IPostBackEve ntHandler sourceControl, String eventArgument) +18
System.Web.UI.Page.RaisePostBackEvent(NameValueCol lection postData) +33
System.Web.UI.Page.ProcessRequestMain() +1277
--------------------------------------------------------------------------------
Version Information: Microsoft .NET Framework Version:1.1.4322.573; ASP.NET Version:1.1.4322.573