开发者

Set CSS Class in HTML.TextBoxFor in VB

开发者 https://www.devze.com 2023-02-05 21:24 出处:网络
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 i

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

精彩评论

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