Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- ?@page
- @model WebApplication1bDeletMe.Pages.CreateModel
- @{
- ViewData["Title"] = "Create";
- }
- <h2>Create</h2>
- <p>Enter your name</p>
- <form method="post">
- <div asp-validation-summary="All"></div>
- <div>Name: <input asp-for="Customer.Name" /></div>
- <!-- field by field validation -->
- <span asp-validation-for="Customer.Name"></span>
- <input type="submit" />
- <!-- Summary validation-->
- </form>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement