<div id="contact-form"> @using(Html.BeginForm()) { @Html.LabelFor(model => model.Name)<br /> @Html.TextBoxFor(model => model.Name)<br /> @Html.ValidationMessageFor(model => model.Name)<br /> @Html.LabelFor(model => model.Phone)<br /> @Html.TextBoxFor(model => model.Phone)<br /> @Html.ValidationMessageFor(model => model.Phone)<br /> @Html.LabelFor(model => model.Email)<br /> @Html.TextBoxFor(model => model.Email)<br /> @Html.ValidationMessageFor(model => model.Email)<br /> @Html.LabelFor(model => model.Comments)<br /> @Html.TextAreaFor(model => model.Comments, new { rows= 10, columns= 40 })<br /> @Html.ValidationMessageFor(model => model.Comments)<br /> <button type="submit">SEND</button> <button type="reset">CLEAR</button> } </div>
@Html.TextAreaFor(model => model.Comments, new { @rows=10, @cols=40 })
@Html.TextAreaFor(model => model.Comments, 10, 40, null);
@Html.TextAreaFor(model => model.Description, new { @class = "whatever-class", @cols = 80, @rows = 10 })
@Html.TextAreaFor(model => model.descricao, htmlAttributes: new { @class = "form-control", @rows= 5, @cols = 30 })
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)