adding a css class with Html.TextBox

Posted by Blankman on Stack Overflow See other posts from Stack Overflow or by Blankman
Published on 2010-06-14T14:50:52Z Indexed on 2010/06/14 14:52 UTC
Read the original article Hit count: 234

Filed under:
|
|
|

Trying to add a 'class' html attribute, but I think the keyword 'class' is causing issues.

<%: Html.TextBox("name", "value", new {class: " required "})%>

Is there a workaround?

© Stack Overflow or respective owner

Related posts about ASP.NET

Related posts about html