Reputation: 1877
I have tried:
@Html.TextBoxFor(m => m.UserName, new {@class='textbox'})
which isn't working.
Upvotes: 40
Views: 45576
Reputation: 10433
@Html.TextBoxFor(m => m.UserName, new {@class="textbox"})
A c# string literal does not take single quotes.
'textbox' -> "textbox"
Upvotes: 67