Reputation: 2349
Name:
<%= Html.TextBox("txtName", "20", new { @class = "hello" }) %>
I want that in VB.NET , is it .cssclass="hello" or is it something else?
Upvotes: 1
Views: 5534
Reputation: 7802
This works:
<%=Html.TextBox("TextName", "TextBox value", New With {.class = "theClass"})%>
Upvotes: 4