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.

detailsview1itemupdating asp net-9

Here is my detailsview: I tried adding a label to my page and then once updated Name had been assigned the value of the textbox I tried assigning that value to the label and it printed out the old product name not the one in the textbox.

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.

Find Control("lbl Rank") Dim lbl HRnk As Label = Details View1.

Details View control used to display a single database record of table layout in ASP. Here we will learn how to use Details View control in ASP. STEP 1: Open Visual Studio and Design webform like below screen.

If the switch is set to 'SCANG' the Drop Down List shows Air Guard rank.

If set to 'SCARNG' the Drop Down List shows Army Guard rank. Data Source ID = "Sql Data Source4" End If ddl Rnk.

I created a Mode Changing Event handler to allow me to change the mode into EDIT mode 5. I hope these shed some light: DETAILSVIEW1 ################################################## ############### Protected Sub Details View1_Mode Changing(By Val sender As Object, By Val e As System. New Mode 'Put into edit mode and databind Case Details View Mode. Insert 'put into read only mode and databind Case Details View Mode. As an experiment I have created an ODS (Object Data Source) that has custome select and custom UPdate routines. Details View Update Event Ar gs) Handles Details View1.

I created the Details View Data Binging sub which populates the field using a datatable 4. Everything works with any issues, just no data is ever returned. Mode Changing '# When the form mode changes we handle how the form loads and what it looks like here Select Case e. Edit) 'Bind Details View() 'Put into insert mode Case Details View Mode. Read Only) Bind Details View() End Select End Sub Protected Sub Details View1_Item Updating(By Val sender As Object, By Val e As System. But I could not delete or update any data as it would tell me there were no fields upon the post back in the Item Deleting or Item Updating event handlers.

As when I assign updated Name to Label1 it displays the old product name value and not the one in the textbox.