Dim dtEditData As New DataTable dtEditData = CType(HttpContext.Current. Session('d tTransferD ata'), datatable) Me.fmvEmail.DataSource = dtEditData Me.fmvEmail.DataBind() End Sub Protected Sub fmvEmail_ItemUpdating(ByVa l sender As Object, ByVal e As System.Web.UI.WebControls. FormViewUp dateEventA rgs) Handles fmvEmail.ItemUpdating ' need code ... In ItemUpdating I would try: string function = ((DropDownList)DetailsView1.FindControl(' ddlfunctions')).SelectedValue.ToString(); After updating you might need to data-bing GridView again in order to show new values. After properties are used to get current values in the event receiver events in SharePoint 2013/2016. Recently we got a requirement to get save the previous value before updating in SharePoint 2013. In the case of the ItemUpdating event, it is possible to get the previous value by using the properties.ListItem property and in the ... My handler of ItemUpdating is: 1 Public Sub DetailsView_ItemUpdating(ByVal sender As Object, ByVal e As DetailsViewUpdateEventArgs) 2 3 Dim MainView As DetailsView = sender 4 'Response.Write('DataItemIndex: ' & MainView.DataItemIndex & '<br>') 5 6 End Sub . I am able to get back the DataItemIndex, but OldValues and NewValues are empty. Hi, could anybody tell me what did I wrong and why the oldvalues and newvalues collections of DetailsViewUpdateEventArgs in ItemUpdating method are containing the same collection of values even if I change them on the page in DetailsView form ? I assumed the newValues should be those I previously filled in into the textboxes before I catched the OnItemUpdating event :- I have a details view to display user details and update it if necessary. I am using e.NewValues to get the edit state values to update. But it throws a Null Exception. The codes are below. &l... In this example snippet, i am going to show how to get values from a FormView Control and also assign new values to a field. This is a raw snippet, so if you are searching for an idea to insert or update a value in form view iteminserting event this will help for a beginner. Insert values into SQL DB, and save the file into the file system and save its name into DB (Which it does as expected). Update DB and the file system by replacing the old values and with new ones (this is OK too.) and previous file of the row with the new file (This is OK too) and Delete the old file... Now my understanding is the AfterProperties contain the new values for the item in an ItemUpdating event receiver, however . contentTypeName = properties.AfterProperties['ContentType'].ToString(); fails with a null reference exception. Why doesn't my code work with an ItemUpdating event receiver? Keys collection Passed for update and delete operations. Contains the primary key or keys for the record being updated or deleted. If the key fields can be modified at the data source, the Keys collection also contains the original values of the key fields. When a data-bound control is populated with data from the data source control, it maintains that data in view state.