fiogf49gjkf0d What is that code? Strange looking to me.
Set the date on the Entity not the form if in Insert mode. Otherwise dont set it all. So if contact (onload of insert contact):
_entity.DateRequested = System.DateTime.Now;
If the field is bound, as it should be, it will always get the data from the DB - you would not need to do that in code... |