set default value in input field in razor view code example Example: html.textboxfor add default value @Html.TextBoxFor(x => x.Age, new { @Value = "0"})