Hello,
A) public void GetEmployee( int EmployeeID );
<asp:ObjectDataSource SelectMethod=”GetEmployee” …>
<SelectParameters>
<asp:ControlParameter Name = ”EmployeeID” ...>
</SelectParameters>
If for whatever reason EmployeeID parameter is NULL, ObjectDataSource will convert Null to zero and passed it as argument to GetEmployee() method.
Why does runtime make such a conversion? Wouldn't throwing an
exception made more sense?
B) “Use the ConvertEmptyStringToNull property to specify whether an
empty string value is automatically converted to null when the data
field is updated in the data source.”
I don’t quite understand the usefulness of this property. Why would
empty string indicate that we want null to be inserted into source’s
data field? I’d assume that this data field is of type String? Then
why not also have ConvertZeroInt32ToNull etc?
bye