Advertisement
Mihao

index

Feb 18th, 2017
197
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C# 0.78 KB | None | 0 0
  1. @model Biblioteka.Models.KsiazkaModels
  2.  
  3.  
  4. @{
  5.     ViewBag.Title = "Home Page";
  6. }
  7.  
  8.  
  9.  
  10. <h1>Witamy w Bibliotece</h1>
  11.  
  12.  
  13. @using (Html.BeginForm())
  14. {
  15.     <p>Autor @Html.TextBoxFor(x => x.autor)</p>
  16.     <p>Tytył @Html.TextBoxFor(x => x.tytul)</p>
  17.     <p>ISBN @Html.TextBoxFor(x => x.isbn)</p>
  18.     <p>Gatunek @Html.DropDownListFor(x => x.gatunek, new[]
  19.     {
  20.         new SelectListItem() {Text = "Kryminał", Value="Kryminał"},
  21.         new SelectListItem() {Text = "Bajka", Value="Bajka"},
  22.         new SelectListItem() {Text = "Thirller", Value="Thriller"},
  23.         new SelectListItem() {Text = "Opowiadanie", Value="Opowiadanie"}      
  24.     }, "Wybierz Gatunek")
  25.     </p>
  26.     <p>Rok wydania @Html.TextBoxFor(x => x.rokwydania)</p>
  27.     <input type="submit" value="Szukaj"/>
  28.    
  29. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement