In an Mvc3 project I have a model class which has a field name InsertDate. I don’t want any control on the view for this field.
When data is being saved, it is comed as null and I set it as DateTime.Now on the controller side.
the problem is that: In the update view, this value comes to me null. I want this field to be set its default value in the update view.
Has anyone got an idea about that?
Use hidden field to store this data and then it will returns to you.