<%@ Control Language="C#" Inherits="System.Web.Mvc.ViewUserControl" %> <% IList<string> errors = ViewData["errors"] as IList<string>; if (errors != null) { %> <ul class="error"> <% foreach (string error in errors) { %> <li><%= Html.Encode(error) %></li> <% } %> </ul> <% } string action = "../" + MVC.Account.Name + "/" + MVC.Account.Actions.Logon; %> <form method="post" action="<%=action %>"> <fieldset> <legend>Login</legend> <div class="explanation"> <p><label for="username">Username</label> </p> <p><label for="password">Password</label> </p> </div> <div class="explanation"> <p><%= Html.TextBox("username") %></p> <p><%= Html.Password("password") %></p> <p><input type="submit" value="Login" class="button"/></p> </div> </fieldset> </form>
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)