Advertisement
Guest User

Untitled

a guest
Sep 10th, 2019
172
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
ASP 1.70 KB | None | 0 0
  1. @model WebApplication2.Models.Entities.Product
  2.  
  3. @{
  4.     ViewData["Title"] = "Create";
  5. }
  6.  
  7. <h1>Create</h1>
  8.  
  9. <h4>Product</h4>
  10. <hr />
  11. <div class="row">
  12.     <div class="col-md-4">
  13.         <form asp-action="Create">
  14.             <div asp-validation-summary="ModelOnly" class="text-danger"></div>
  15.            
  16.             <div class="form-group">
  17.                 <label asp-for="Name" class="control-label"></label>
  18.                 <input asp-for="Name" class="form-control" />
  19.                 <span asp-validation-for="Name" class="text-danger"></span>
  20.             </div>
  21.             <div class="form-group">
  22.                 <label asp-for="Description" class="control-label"></label>
  23.                 <input asp-for="Description" class="form-control" />
  24.                 <span asp-validation-for="Description" class="text-danger"></span>
  25.             </div>
  26.             <div class="form-group">
  27.                 <label asp-for="Price" class="control-label"></label>
  28.                 <input asp-for="Price" class="form-control" />
  29.                 <span asp-validation-for="Price" class="text-danger"></span>
  30.             </div>
  31.             <div class="form-group">
  32.                 <label asp-for="Class" class="control-label"></label>
  33.                 <input asp-for="Class" class="form-control" />
  34.                 <span asp-validation-for="Class" class="text-danger"></span>
  35.             </div>
  36.             <div class="form-group">
  37.                 <input type="submit" value="Create" class="btn btn-primary" />
  38.             </div>
  39.         </form>
  40.     </div>
  41. </div>
  42.  
  43. <div>
  44.     <a asp-action="Index">Back to List</a>
  45. </div>
  46.  
  47. @section Scripts {
  48.     @{await Html.RenderPartialAsync("_ValidationScriptsPartial");}
  49. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement