diff --git a/chap3_your_first_mvc_app/PartyInvites/PartyInvites.csproj b/chap3_your_first_mvc_app/PartyInvites/PartyInvites.csproj index c684ce8..cf4ffa6 100644 --- a/chap3_your_first_mvc_app/PartyInvites/PartyInvites.csproj +++ b/chap3_your_first_mvc_app/PartyInvites/PartyInvites.csproj @@ -145,6 +145,7 @@ + Web.config diff --git a/chap3_your_first_mvc_app/PartyInvites/Views/Home/RsvpForm.cshtml b/chap3_your_first_mvc_app/PartyInvites/Views/Home/RsvpForm.cshtml new file mode 100644 index 0000000..b817dbf --- /dev/null +++ b/chap3_your_first_mvc_app/PartyInvites/Views/Home/RsvpForm.cshtml @@ -0,0 +1,31 @@ +@model PartyInvites.Models.GuestResponse + +@{ + Layout = null; +} + + + + + + title + + + @using (Html.BeginForm()) + { +

Your name: @Html.TextBoxFor(x => x.Name)

+

Your email: @Html.TextBoxFor(x => x.Email)

+

Your phone: @Html.TextBoxFor(x => x.Phone)

+

+ Will you attend? + @Html.DropDownListFor(x => x.WillAttend, new[] + { + new SelectListItem() {Text = "Yes, I'll be there", Value = bool.TrueString}, + new SelectListItem() {Text = "No, I can't come", Value = bool.FalseString} + }, "Choose an option") +

+ + +} + + \ No newline at end of file