HOW TO GIVE THE ID TO THE HTML TEXTBOX?

Chintoo Semi

Total Post:135

Points:947
Posted by  Chintoo Semi
.NET  ASP.Net  HTML 
 879  View(s)
Ratings:
Rate this:
My html tag looks like this

<%=Html.TextBox("username")%>
Any suggestions?

  1. Ashish Pandey

    Post:128

    Points:898
    Re: How to give the id to the html textbox?

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

Answer

NEWSLETTER

Enter your email address here always to be updated. We promise not to spam!