SpiceQA
Questions
Tags
Users
Badges
How do I add the css class attribute to a textbox in razor?
user_101570
0
Created Oct 23, 2010
Edited Oct 23, 2010
Viewed 44630
Follow
I have tried:
@Html.TextBoxFor(m => m.UserName, new {@class='textbox'})
which isn't working.
razor
asp.net-mvc
.net
40
0
Add comment
+
Share
1 Answers
Related