Reputation: 97
How to give the id to the html textbox?
My html tag looks like this
<%=Html.TextBox("username")%>
Any suggestions?
Upvotes: 1
Views: 994
Reputation: 794
<%= Html.TextBox("username",new { ID = "<put id here>"}) %>
Upvotes: 4