This article will show you how to use Details View control without using of SQLData Source data control.
In my previous article Details View Rich Data Control we have learned how to use Details View using SQLData Source data control...
The way that I did it, whether right or wrong, is to attach to the Item Inserting event. I don't know if this is a good idea or not, but I don't see any other day. for each of the item templates that the data will be updated.
NET 4.0 (Web Forms) A snippet of code that I believe to be relevant below: The problem is that if I want to handle the old values, I can´t: this, evaluates to 0: int old Values Count = e. Count; and this, evaluates to null, even if I alter the value to a new one: string company Name Old = e.To clarify this take a look into what's happen on the Item Updating event, if we checked the e. Keys collection before we set the Name filed as read-only filed we will find that this collection contains two Items: The Details View will not pass the read-only fields to the underlying data source and this is not an issue Details View designed like this.Take a look to Handle Update method in the Details View control using reflector and you will find it does not include Read-only fields when extracting values from fields.I can't see anything wrong with the code and it's driving me mad. hi, i think you miss something, try to see the table where you save the value of the fields you entered if it change anything, if it change anything, then you have put some code on your SP that retrieves data after the UPDATE code that you have.The product table is not updating with the new values.I think the problem is to do with the new values from the textbox not being retrieved.