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

How to see OldValue/NewValue collections with FormView?

P: n/a
I want to be able to see the changes a user makes while in the Edit Mode of
FormView.

My understanding is that in the FormView ItemUpdating event, I should be
able to get a collection of Keys, OldValues, and NewValues. Here's the
sequence. . .
1. My Objectdatasource is populated & bound to FormView
2. The FormView displays properly for all
modes(ItemTemplate/EditTemplate/InsertTemplate)
3. I change some values while in Edit Mode
4. I submit the change via a Button that calls FormView ItemUpdate Command
5. The ItemUpdating event fires
6. The keys collection is populated with the DataKeyNames. The NewValues
and OldValues collection are empty.
(They are also empty in the ItemUpdated event)

I need the old & new values to see what has changed. Anyone have any ideas
on why they are empty?
Nov 19 '05 #1
Share this Question
Share on Google+
1 Reply


P: 1
I have exactly the same problem. No old or new values so update to database fails because fields are set to not null. Checked formview edititemtemplate over and over, checked update parameters, checked sql. No syntax errors, apparently no issues, still will not work. Have it working fine with 3 field form, this has 35, does not work whatever I try. Did you find a solution?
Jul 7 '06 #2

This discussion thread is closed

Replies have been disabled for this discussion.