Advertisement
krasipetrovbg

Untitled

Jan 27th, 2018
82
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
ASP 1.30 KB | None | 0 0
  1. @model itblog.DataSend
  2. @{
  3.     ViewBag.Title = "Контакти";
  4.     Layout = "~/Views/Shared/_Layout.cshtml";
  5. }
  6.  
  7.  
  8.  
  9. <article>
  10.     <h2>Изпрати ни съобщение</h2>
  11.     @using (Html.BeginForm())
  12.     {
  13.         @Html.AntiForgeryToken()
  14.         @Html.ValidationSummary(true, "", new { @class = "validation" })
  15.         @Html.LabelFor(model => Model.contact.Name, new { htmlAttributes = new { @class = "label" } })<br />
  16.         @Html.ValidationMessageFor(model => Model.contact.Name, "", new { @class = "validation" })<br />
  17.         @Html.EditorFor(model => Model.contact.Name)<br /><br />
  18.         @Html.LabelFor(model => Model.contact.Email, new { htmlAttributes = new { @class = "label" } })<br />
  19.         @Html.ValidationMessageFor(model => Model.contact.Email, "", new { @class = "validation" })<br />
  20.         @Html.EditorFor(model => Model.contact.Email)<br /><br />
  21.         @Html.LabelFor(model => Model.contact.Message, new { htmlAttributes = new { @class = "label" } })<br />
  22.         @Html.ValidationMessageFor(model => Model.contact.Message, "", new { @class = "validation" })<br />
  23.         @Html.TextAreaFor(model => Model.contact.Message, 3, 40, null)<br />
  24.         <br /> <br />
  25.  
  26.  
  27.  
  28.         <input type="submit" value="Изпрати" class="button-submit" />
  29.  
  30.     }
  31.  
  32. </article>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement