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