Set CSS Class in HTML.TextBoxFor in VB
I've seen the other posts referencing C# syntax do do this, but I can't find how to do it using VB.NET. I swear I'm daft. I keep trying different variations that I think would work but I'm missing it.
C# Syntax is:
Html.TextBox("title", Model.Title, new { @class = 开发者_StackOverflow"txt" })
How do I do that in VB?
Thanks!
Try:
New With {.class = "txt" }
精彩评论