By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
459,855 Members | 1,875 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 459,855 IT Pros & Developers. It's quick & easy.

Formview Update Problem

P: n/a
I have a problem trying to do an Update using a formview. The datasource is
an SQLDatasource connected to a SQL Server database. If I saelect an entry
to edit, all of the correct values for the row are properly displayed. If I
delete the item, that works just fine. But, if I try to do an update, I get
an error in the FormView1_ItemUpdated Sub - the ID field value is "Nothing".
I don't understand how that can be since it properly retrieved that row
based on the ID?

If I Break at the FormView1_ItemUpdated sub I see the following:

1. The data was not updated - looking in the DB shows the old data - I
thought this event fired AFTER the update?
2. Some OldValues and NewValues are correct, others are "Nothing"
3. If I attempt to see the DataKey list using ?Formview1.DataKeyNames I get

The SQLDataSource Select and Update commands look fine.

Does anyone have any ideas on what is going on here or how to go about
debugging it? It just makes no sense to me.

Apr 15 '06 #1
Share this question for a faster answer!
Share on Google+

This discussion thread is closed

Replies have been disabled for this discussion.