i am using HiddenFor with model binding which is binding value to it. i want to reset the binded value to zero.How can i do it?
i tried this but it is not working...
<% foreach (var item in Model ) { %>
<%: Html.HiddenFor(model => model.ID,new { @value="0"})%>
<% } %>
You can create your own helper extension for that: