Ok.
I've tried creating the ODS in source (see atatched), but still ahve the same issue - NewValues is null on "ItemUpdating" event.
Main Topics
Browse All TopicsGreetings all
I am trying to access the "NewValues" of a formView Control.
I started out with a DataTable as a Datasource (all done in coide behind) and subsequently read that the NewValues are only available with controls like the SqlDataSource and ObjectDataSource.
I have subsequently converetd my code (attached) to use an ObjectDataSource (all done in code behind) that is bound to a DataTable (hope I've said that correclty!).
When I try to access the NewValues (or OldValues in the "FvSpousal_ItemUpdating" event, they are still null.
What am I misisng?
In advance, thanks!!!
allanmark
This Question has been solved and asker verified All Experts Exchange premium technology solutions are available to subscription members.
Experts Exchange has been collecting answers to technology questions since 1996…3 million and counting! If you have a question, chances are we already have your answer.
If you can't find the exact answer you're looking for, ask our exclusive community of 50,000 experts. You’ll get a personalized answer from a trusted professional.
Thousands of free tech tips, tricks, how-to’s and tutorials are available in our peer reviewed articles section. See for yourself how smart our experts are, no login required.
Access the answers to your technology questions today.
30-day free trial. Register in 60 seconds.
Members of the expert community talk about why the experience at Experts Exchange is different than what you will find anywhere else.

Try it out and discover for yourself.
30-day free trial. Register in 60 seconds.
Join the community of experts here and help other tech pros by answering question in your area of expertise. You can earn FREE access to all Experts Exchange's premium features and resources.
Business Accounts
Answer for Membership
by: strickddPosted on 2009-04-28 at 07:45:39ID: 24251332
Using datasources in the code-behind can be tricky. It may be easier if you can create the ObjectDataSource and bind it to a method in the code-behind that returns the data table.
If you cannot do this, make sure you are binding the datasource to your object on each postback. Also make sure you are creating the datasource the same way on each postback.