Hi
How to set the readonly attribute to HTML Textbox helper class.
<%= Html.TextBox("Email", "[email protected]", new { @class = "required email" } )%>
Appreciate your response Thanks
Hi
How to set the readonly attribute to HTML Textbox helper class.
<%= Html.TextBox("Email", "[email protected]", new { @class = "required email" } )%>
Appreciate your response Thanks
<%= Html.TextBox("Email", "[email protected]", new { @class = "required email", readonly="true" } )%>
<%= Html.TextBox("Email", "[email protected]", new { @class = "required email", readonly = "readonly" } )%>
<%= Html.TextBox("Email", "[email protected]", new { @class = "required email", @readonly="readonly" }) %>
1
<%= Html.TextBox("Email", "[email protected]", new { @class = "required email", @readonly="readonly" } )%>
@ symbol bypasses the reserved word.