set default value for text input in html code example
Example 1: html.textboxfor add default value
@Html.TextBoxFor(x => x.Age, new { @Value = "0"})
Example 2: default value input
<input type="text" id="fname" name="fname" value="John">
@Html.TextBoxFor(x => x.Age, new { @Value = "0"})
<input type="text" id="fname" name="fname" value="John">