Created
October 16, 2010 20:30
-
-
Save kouphax/630232 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@inherits System.Web.Mvc.WebViewPage<Models.Person> | |
@{ | |
View.Title = "Home Page"; | |
LayoutPage = "~/Views/Shared/_Layout.cshtml"; | |
} | |
<div> | |
@Html.ValidationSummary() | |
@{Html.EnableClientValidation();} | |
@using(Html.BeginForm()){ | |
<p>Name:</p> | |
@Html.TextBoxFor(p => p.Name) | |
<div>@Html.ValidationMessageFor(p => p.Name)</div> | |
<input type="submit" value="Submit"/> | |
} | |
</div> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment