Guest User

Untitled

a guest
May 21st, 2018
26
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.21 KB | None | 0 0
  1. @model Ticket
  2. @{
  3. ViewData["Title"] = "OrderTicket";
  4. var landen = (IEnumerable<SelectListItem>)ViewData["Countries"];
  5. var lijstraces = (IEnumerable<SelectListItem>)ViewData["Races"];
  6. }
  7.  
  8. <p>Please Fill out the following field</p>
  9. <form asp-action="OrderTicket" method="post">
  10.  
  11.  
  12. <label asp-for="Name">@Html.DisplayNameFor(x => x.Name)</label>
  13. <input asp-for="Name" /><br />
  14.  
  15. <label asp-for="Email">@Html.DisplayNameFor(x => x.Email)</label>
  16. <input asp-for="Email" /><br />
  17.  
  18. <label asp-for="Address">@Html.DisplayNameFor(x => x.Address)</label>
  19. <input asp-for="Address" /><br />
  20.  
  21. <label asp-for="Number">@Html.DisplayNameFor(x => x.Number)</label>
  22.  
  23. @for (int i = 1; i < 6; i++)
  24. {
  25. <input type="radio" asp-for="Number" value="@i" />@i
  26. }
  27.  
  28. <br />
  29.  
  30. <label asp-for="CountryID">@Html.DisplayNameFor(x => x.Country)</label>
  31. <select asp-for="CountryID" asp-items="@landen"></select><br />
  32.  
  33. <label asp-for="RaceID">@Html.DisplayNameFor(x => x.Race)</label>
  34.  
  35. <select asp-for="RaceID" asp-items="@lijstraces"></select><br />
  36.  
  37. <input type="submit" value="OrderTicket" />
  38. </form>
  39.  
  40. <a asp-controller="Home" asp-action="Index">Back</a>
Add Comment
Please, Sign In to add comment