G
Guest
What is the best way to handle data interpolation between form controls and
the actual sql data field. I have radio buttons that need to be interpreted,
form values that have to be translated.. e.g.
if (tbDaysDriveAlone.Text > 0) sb.Append( @"drive\");
if (tbDaysVanPool.Text > 0) sb.Append(@"vanPool\");
if (tbDaysCarpool > 0) sb.Append(@"Carpool\");
myObjectInstance.CommuteMethod = sb.ToString();
Should this be done in an event method generated by the update command or in
the update method of the business object... not sure how to proceed when
using ObjectDataSource.
Thanks for any advice.
the actual sql data field. I have radio buttons that need to be interpreted,
form values that have to be translated.. e.g.
if (tbDaysDriveAlone.Text > 0) sb.Append( @"drive\");
if (tbDaysVanPool.Text > 0) sb.Append(@"vanPool\");
if (tbDaysCarpool > 0) sb.Append(@"Carpool\");
myObjectInstance.CommuteMethod = sb.ToString();
Should this be done in an event method generated by the update command or in
the update method of the business object... not sure how to proceed when
using ObjectDataSource.
Thanks for any advice.