0

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?

4

1 回答 1

2

You can do it simply by following this form:

@Html.TextBoxFor(u => u.Something, new { @Value = "Add your value here"})
于 2013-11-08T18:11:52.530 回答