473,387 Members | 1,463 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,387 software developers and data experts.

GridView/AccessDataSource update

I've got a paging and sorting enabled GridView whose datasource is and
AccessDataSource. I build the SelectCommand at PageLoad - it's a union
query to show items and comments of the user logged in. This all works
fine.

I tried to set AccessDataSource.UpdateCommand in the code behind (C#) by
handling the GridView.OnUpdating event - since this is supposed to fire
before the record is updated, I thought I could set the UpdateCommand here.
Didn't work.

So I tried setting the UpdateCommand in design, adding it as an element in
the .aspx, with asp:ControlParameters inside UpdateParameters. This didn't
work either.

Both ways that didn't work didn't kick me back to Visual Studio in debug
mode - instead I get (I think the same msg for both approaches) the message
below. How do I go about troubleshooting this?
Invalid postback or callback argument.
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.ArgumentException: Invalid postback or callback
argument.
[ArgumentException: Invalid postback or callback argument.]
System.Web.UI.ClientScriptManager.ValidateEvent(St ring uniqueId, String
argument) +2089124
System.Web.UI.WebControls.ImageButton.RaisePostBac kEvent(String
eventArgument) +101
System.Web.UI.WebControls.ImageButton.System.Web.U I.IPostBackEventHandler.RaisePostBackEvent(String
eventArgument) +7
System.Web.UI.Page.RaisePostBackEvent(IPostBackEve ntHandler
sourceControl, String eventArgument) +11
System.Web.UI.Page.RaisePostBackEvent(NameValueCol lection postData) +33
System.Web.UI.Page.ProcessRequestMain(Boolean
includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +5191
Nov 19 '05 #1
0 2870

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

0
by: rob merritt | last post by:
Hi I am trying to update via an datagrid only nothing seems to happen how would I diplay what the update query looks like msgbox reponse.write? where do I put em? <%@ Page Language="C#" %> ...
0
by: Aws | last post by:
My crazy GridView !! I am using Visual Studio 2005, I have a problem with my GridView. I have one access .mdb table and when I update a record on the table EVERYTHING is perfect. I made a Web...
0
by: DC | last post by:
The problem I'm using the .NET GridView and FormView objects for the first time and im getting the error "An OleDbParameter with ParameterName '@ID' is not contained by this...
9
ihaveaquery
by: ihaveaquery | last post by:
Hi, Delete is working fine for me, but Update- Nothing is happening. Please find the code snippet below and help me out... <asp:GridView ID="empGrid" runat="server" AllowSorting="True"...
0
by: doomsday123 | last post by:
I have a gridview that displays a ORDER_ID in the first column and then I add 2 button columns on the end of it to approve or deny the order. If they approve it I want to update the database row's...
3
by: dhaneshrs | last post by:
I have a gridview i managed to update using the edit option in the smartmenu. The problem comes when i delete a value or make a value read only. Say i have a table Employee with the following...
1
by: edmondching | last post by:
hi, i am badly stuck with the simplest thing. I have created a simple gridview for users to update info. however, as soon as the user clicked the "update" button, the info just got lost to nowhere....
0
by: KeesH | last post by:
Hi, I am quite desperate now because I made a nice webshop with a gridview where the customer is able to update the amount of products (Hostas in my situation) or delete the row. The problem is...
0
by: BizWeb | last post by:
Hi, i am new to ASP.NET. I have write a very simple code to try the updating of the GridView but it is not updating the data. Below is the simple code that i have use. <%@ Page Language="vb"...
6
by: Ahmedhussain | last post by:
Hi there, I m doing work on a gridview and Im getting an error: A potentially dangerous Request.Form value was detected from the client (ctl00$Content$GridView1$ctl03$TextBox1="<span...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.