How to set the width of the text box when using HTml.TextBoxFor

Set the width of the text box when using HTml.TextBoxFor

Asp.net-mvc How to change width of Html.TextBox

Solution

<%: Html.TextBoxFor(m => m.FirstName, new { style = “width:200px;” })%>

 

About the Author

avatar