Ritz
Ritz

Reputation: 97

How to give the id to the html textbox?

How to give the id to the html textbox?

My html tag looks like this

<%=Html.TextBox("username")%>

Any suggestions?

Upvotes: 1

Views: 994

Answers (1)

Joshlo
Joshlo

Reputation: 794

<%= Html.TextBox("username",new { ID = "<put id here>"}) %>

Upvotes: 4

Related Questions