Formview itemupdating new values
I cannot understand what is wrong with the following code. Find Control("Pass Out Year DDL") Dim Pass Out Date1 As Date Time = Date Time. All I want to do is to change certain values of a Date Time column during Form View updating event. When performing two way databinding, Null values and Nullables get changed to string. The way the Form View control handles null values has caused me some grief :-( Consider a Form View bound to an Object Data Source like so: On the other hand, if we try the same thing with the Details View control, the Last Name will still be “null” on update.This Form View behavior can be problematic when we we need the original object and the modified object to perform an update with conflict detection (see LINQ to SQL example below).Note that Conflict Detection is set to Compare All Values in the Object Data Source.In brief, LINQ to SQL compares the original value and new value and generates SQL code to update the original object. Old Values has all values of fields bound on template. Form View2 talks to my Activities table and has an Item Template, Insert Item Template and an Edit Item Template. The problem is that during Item Updating event of Form View, New Values table is empty. Form View1 talks to my Opportunity table and has an Item Template and an Edit Item Template.
the Form View Update Event Args always has the Old Values and New Values collection empty.(Keys is too).I can't see anything wrong with the code and it's driving me mad.