mashedin
mashedin

Reputation: 33

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 = "txt" }) 

How do I do that in VB?

Thanks!

Upvotes: 3

Views: 7022

Answers (1)

davecoulter
davecoulter

Reputation: 1826

Try:

New With {.class = "txt" }

Upvotes: 5

Related Questions