Formview itemupdating oldvalues

Rated 4.99/5 based on 647 customer reviews

To work around this, you will need to subscribe to the Item Updating event and extract the values yourself: I'm curious to know why the two-way databinding isn't functional for nested controls. In any case, your blog entry helped me solve my problem, so I wanted to say thanks!

Note that Conflict Detection is set to Compare All Values in the Object Data Source.

My understanding is that in the Form View Item Updating event, I should be able to get a collection of Keys, Old Values, and New Values. (They are also empty in the Item Updated event) I need the old & new values to see what has changed. Checked formview edititemtemplate over and over, checked update parameters, checked sql.

The Form View displays properly for all modes(Item Template/Edit Template/Insert Template) 3. I submit the change via a Button that calls Form View Item Update Command 5. The keys collection is populated with the Data Key Names.

Now, looking at the Autos debug window I see that it's getting the new value for the "comments" field, I changed the value to "Comment1" just so it would stick out.

The old value was "NO COMMENT" So, when I update the field and click the Update link button, it's getting the new value but for some reason not storing it. Also, it's getting the key "id" just fine with its value of "10" so I'm not sure what to check next...

Leave a Reply