Name:
<%= Html.TextBox("txtName", "20", new { @class = "hello" }) %>
I want that in VB.NET , is it .cssclass="hello" or is it something else?
Name:
<%= Html.TextBox("txtName", "20", new { @class = "hello" }) %>
I want that in VB.NET , is it .cssclass="hello" or is it something else?
This works:
<%=Html.TextBox("TextName", "TextBox value", New With {.class = "theClass"})%>
You need to use the "With" keyword, and a dot, as follows:
<%= Html.TextBox("txtName", "20", New With { .class = "hello" }) %>