This is my asp: Protected Sub Formview1_Item Updating(By Val sender As Object, By Val e As System. New Values("Service Provider Type") = CType(Form View1. This is a community of tens of thousands of software programmers and website developers including Wrox book authors and readers. By joining today you can post your own programming questions, respond to other developers questions, and eliminate the ads that are displayed to guests. Can anyone shed light on how to allow null values for dates using ASP. Is it possible to step into the Update Command and create an optional statement when using the data controls? Whenever the field is blank or if you type-in or use the calendar contorl to insert a standard #/##/#### date I get the following error "The string was not recognized as a valid Date Time" error. Any help or direction would be greatly appreciated. Here is the code, so hopefully you or someone else doesn't have to waste valuable time trying to figure it out.... NET 2.0 Basics section of the Wrox Programmer to Programmer discussions. Value End If End Sub Protected Sub Form View1_Item Inserting(By Val sender As Object, By Val e As System.
The Form View control passes values to the data source for an update or delete operation in three dictionary collections: the Keys dictionary, the New Values dictionary, and the Old Values dictionary.
The form view has a data key name of the selected row in the grid view.
When a row / field is updated in the form view, this is not instantly shown in the grid view, but instead will show after a page reload.
I suggest you can debug it in your side, check the event how to execute and the value how to change!
Best Regards, Eric Du MSDN Community Support Please remember to click "Mark as Answer" the responses that resolved your issue.