Question in short:
How tot do this in MVC.NET?
Question in long version:
Im trying to use a DateTime column in a SQL Table for version tracking (this
I think the problem is that writing out the last update time into a hidden field like that will just do a ToString on the date which by default won't render out the milliseconds. You could try rendering out the timestamp as some absolute value such as ticks:
<%= Html.Hidden("LastUpdate", Model.LastUpdate.Ticks) %>
You can then reconstruct your datetime on the other side by converting the value back into a long & reconstructing the DateTime:
var dt = new DateTime(Int64.Parse(ticks));