Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
姓名:
<%= Html.TextBox("txtName", "20", new { @class = "hello" }) %>
我想要在 VB.NET 中,是 .cssclass="hello" 还是别的什么?
这有效:
<%=Html.TextBox("TextName", "TextBox value", New With {.class = "theClass"})%>
您需要使用“With”关键字和一个点,如下所示: