How to set the readonly attribute to HTML Textbox helper class.
<%= Html.TextBox("Email", "abc@example.com", new { @class = "required email" } )%>
Appreciate your response
How to set the readonly attribute to HTML Textbox helper class.
<%= Html.TextBox("Email", "abc@example.com", new { @class = "required email" } )%>
Appreciate your response
<%= Html.TextBox("Email", "abc@example.com", new { @class = "required email", @readonly="readonly" }) %>
<%= Html.TextBox("Email", "abc@example.com", new { @class = "required email", @readonly = "readonly" } )%>
<%= Html.TextBox("Email", "abc@example.com", new { @class = "required email", readonly="true" } )%>