I see. Works great with the Html.HiddenFor suggestion and that's probably what I'll stick with.
Regarding the exclude properties... I have used [Exclude] on ids in my models to prevent them from being created in the templating process. I suppose I could just add [Exclude] to 'DateCreated' and still be able to use it for display purposes in the details
view.
Budoray
Member
1 Points
2 Posts
Re: MVC 4 Not saving data after edit
May 24, 2012 06:09 PM|LINK
I see. Works great with the Html.HiddenFor suggestion and that's probably what I'll stick with.
Regarding the exclude properties... I have used [Exclude] on ids in my models to prevent them from being created in the templating process. I suppose I could just add [Exclude] to 'DateCreated' and still be able to use it for display purposes in the details view.
Thanks for your help.