How to give the id to the html textbox?

Total Post:135

Points:947
.NET  ASP.Net  HTML 
 1149  View(s)
Ratings:
Rate this:
My html tag looks like this

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

  1. Post:128

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

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

      Modified On Apr-09-2018 01:44:01 AM

Answer

NEWSLETTER

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