I've been there already. There are no examples on any of those links for CRUD using ODS and DS.
I basically create a DataSet in the wizard and create all the procedures for inserting, updating, deleting and selecting from an SQL datastore.
Tested all procedures on the SQL side and via the VS2008 designer.
Created a new ObjectDataSource with the wizard and verified all parameters - they match - no errors.
Setup a grid using the ODS just created.
Run the page, all items show up in their respective columns, no problem.
Click an edit button, change a value, click Update, nothing happens, no errors, no changes in the SQL table, nada! The page is posted back and the update is indeed called, just updates nothing. The dataset is also not updated.
Paging works, sorting works, etc.
Just 1 single example showing UPDATE, DELETE, and INSERT working with a dataset designed by the dataset designer.
All works fine with an SQLDataSource, but I need to use an object (and I assumed that's why MS has the dataset designer - to reduce hours and days of hand coding every single business object!)
Main Topics
Browse All Topics





by: mohan_sekarPosted on 2009-07-02 at 13:32:02ID: 24767472
http://blogs.msdn.com/bgol d/archive/ 2005/05/05 /415106.as px