Reputation: 2066
Let's say I'm using the textbox HTML helper:
@Html.TextBoxFor(u=>u.Something)
How can I show some text inside of the textbox when the page loads?
Upvotes: 0
Views: 284
Reputation: 5119
You can do it simply by following this form:
@Html.TextBoxFor(u => u.Something, new { @Value = "Add your value here"})
Upvotes: 3