Asp net formview itemupdating newvalues
Generally you should not have to do this if the controls in your Form View are all bound using Bind() for two-way databinding (instead of Eval), but at the very least you could put a break point in Item Updating and open up the e. A next step would be to launch SQL Server Profiler to run a trace and examine the actual query being performed. Did you remember to put all the parameters in the sqldatasource under the insert and update parameters list?Oh also are you setting the cancel property at all in the itemupdating event?Form View2 talks to my Activities table | and has an Item Template, Insert Item Template and an Edit Item Template.The | Grid View only reads data from the Activities table and does not appear to | affect this problem.I've been over the page a bunch of times and I can't see anything | wrong jumping out at me. | | I will try to refactor to access from the Northwind database, and I'm going | to attempt to rebuild the page as well. check this out for some more: are you trying to get to them, please post your code if these don't help you Found the issue.Would you try comparing the problem page with the other page which works correctly to see whether there is any diference?
All of the controls read from the tables with no problem and switch modes with no problem, but when going into Update mode, changing something and clicking the Update button, it does not save the information to the tables. Regarding on the Form View updating problem, I think it is likely a page specific issue.The rows from the sqldatasource display fine in the Form View and I can edit them.When I click Update, I get the Item Updating event but not the Item Updated event and the revisions are not written to the database. In your Item Updating event handler, make sure of the following things: -If you are not using optimistic concurrency checking, remove any old values the Form View may be placing in the Old Values collection. The page has, among other things, two Form Views and a Grid View control, each with its own Sql Data Source. Net 2.0 framework, and I have a serious problem with the page I'm currently working on.