Skip to content

Instantly share code, notes, and snippets.

@kouphax
Created October 16, 2010 20:30
Show Gist options
  • Save kouphax/630232 to your computer and use it in GitHub Desktop.
Save kouphax/630232 to your computer and use it in GitHub Desktop.
@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