change the code as follows
Var a_controls() As Control = [RecordNumber, Reference, ClientRef,
Field1, Field2, Field3, Field4, Field5, Field6, Field7, Field8, Field9, Field10, Field11, Field12,
Status, Category, SubCategory, Ownership, PropertyName, Location, SubLocation, ImageName, ImageMemo,
Value1Type, Value1Currency, Value1, Value1Date, Value2Type, Value2Currency, Value2, Value2Date,
Value3Type, Value3Currency, Value3, Value3Date, Value4Type, Value4Currency, Value4, Value4Date]
to this one after latest version
Var a_controls() As Control
For x As Integer = 0 To a_fields.Count - 1
Var control As Control = TabPanel1.FindControl(a_fields[x])
If control <> Nothing Then
If control IsA TextField Then
a_controls.Append(control)
ElseIf control IsA TextArea Then
a_controls.Append(control)
ElseIf control IsA ComboBox Then
a_controls.Append(control)
ElseIf v IsA DateTimePicker Then
a_controls.Append(control)
End If
End If
Next
work beautifully..
thanks for the update