Skip to content

Instantly share code, notes, and snippets.

@toddpi314
Created July 30, 2012 00:49
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save toddpi314/3203006 to your computer and use it in GitHub Desktop.
Save toddpi314/3203006 to your computer and use it in GitHub Desktop.
Lightning_LogOnView
@model LightningMVC.Views.LogOn.LogOnViewModel
@{
Layout = "~/Views/Shared/MasterLayout/MasterLayoutView.cshtml";
}
@using (Html.BeginForm("Logon", "Authentication", FormMethod.Post))
{
<h2>Login</h2>
<table>
<tr>
<td>Username: </td>
<td>
<input type="text" size="30" name="UserName" id="login_username" value="@Model.UserName" style="width: 370px;" />
</td>
</tr>
<tr>
<td>Password: </td>
<td>
<input type="password" size="30" name="Password" id="login_password" value="" style="width: 370px;" />
</td>
</tr>
<tr>
<td colspan="2">
<input type="submit" value="Login" />
</td>
</tr>
<tr>
<td colspan="2">
@if (Html.ValidationSummary() != null)
{
@Html.Raw(Server.HtmlDecode(Html.ValidationSummary().ToString()))
}</td>
</tr>
</table>
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment