@model MvcBasicSite.Models.LogOnModel @using Resources; @{ ViewBag.Title = "Log On"; } <h2>@Resource.LogOnTitle</h2> <p> @Resource.LogOnMessage @Html.ActionLink(Resource.LogOnRegisterLink, "Register", "Account") @Resource.LogOnMessage2 </p> @Html.ValidationSummary(true, Resource.LogOnValidationSummary) @using (Html.BeginForm()) { <div> <fieldset> <legend>@Resource.LogOnLegend</legend> <div class="editor-label"> @Resource.LogOnModelUsername </div> <div class="editor-field"> @Html.TextBoxFor(m => m.Username) @Html.ValidationMessageFor(m => m.Username) </div> <div class="editor-label"> @Resource.LogOnModelPassword </div> <div class="editor-field"> @Html.PasswordFor(m => m.Password) @Html.ValidationMessageFor(m => m.Password) </div> <p> <input type="submit" value="@Resource.LogOnLoginButton" /> </p> </fieldset> </div> } @section scripts { @Content.Script("jquery.validate.min.js", Url) @Content.Script("jquery.validate.unobtrusive.min.js", Url) }
By viewing downloads associated with this article you agree to the Terms of Service and the article's licence.
If a file you wish to view isn't highlighted, and is a text file (not binary), please let us know and we'll add colourisation support for it.
This article, along with any associated source code and files, is licensed under The Microsoft Public License (Ms-PL)