How do I add the css class attribute to a textbox in razor?

Viewed 44630

I have tried:

@Html.TextBoxFor(m => m.UserName, new {@class='textbox'})

which isn't working.

1 Answers
Related