开发者

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" }
0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜