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