Formview itemupdating example
property to define your own user interface (UI) for the data row when the Form View control is in edit mode.The edit item template usually contains the input controls for the user to update the values of an existing record, as well as command buttons to update the record and to cancel the update operation. By using a two-way binding expression, you can associate a field with an input control.Is Post Back" - otherwise it reloads the original datatable when you postback, and you lose the new values.The Details View and Form View controls, the subject of this chapter, enable you to work with a single data item at a time.The difference between the two controls concerns the user interface that the controls render.
First, it is important that the databind to the datatable is not used on page load except with "If Not Me.
Empty Then command = New Sql Command("UPDATE [News] SET Event = @content, Category = @Category, Start Date = @Start Date, End Date = @End Date, headline = @headline, summary = @summary WHERE id = @id", connection) command.