Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <%@ Page Title="Log In" Language="C#" MasterPageFile="~/CarRental.Master"
- CodeBehind="Login.aspx.cs" Inherits="LFS_EWDT.Account.Login" %>
- <asp:Content ID="HeaderContent" runat="server" ContentPlaceHolderID="head">
- </asp:Content>
- <asp:Content ID="BodyContent" runat="server" ContentPlaceHolderID="ContentPlaceHolder4">
- <h2>
- Log In
- </h2>
- <p>
- Please enter your username and password.
- <asp:HyperLink ID="RegisterHyperLink" runat="server" EnableViewState="False"
- NavigateUrl="~/Account/Register.aspx">Register</asp:HyperLink> if you don't have an account.
- </p>
- <asp:Login ID="LoginUser" runat="server" EnableViewState="false" RenderOuterTable="false">
- <LayoutTemplate>
- <span class="failureNotification">
- <asp:Literal ID="FailureText" runat="server"></asp:Literal>
- </span>
- <asp:ValidationSummary ID="LoginUserValidationSummary" runat="server" CssClass="failureNotification"
- ValidationGroup="LoginUserValidationGroup"/>
- <div class="accountInfo">
- <fieldset class="login">
- <legend>Account Information</legend>
- <p>
- <asp:Label ID="UserNameLabel" runat="server" AssociatedControlID="UserName">Username:</asp:Label>
- <asp:TextBox ID="UserName" runat="server" CssClass="textEntry"></asp:TextBox>
- <asp:RequiredFieldValidator ID="UserNameRequired" runat="server" ControlToValidate="UserName"
- CssClass="failureNotification" ErrorMessage="User Name is required." ToolTip="User Name is required."
- ValidationGroup="LoginUserValidationGroup">*</asp:RequiredFieldValidator>
- </p>
- <p>
- <asp:Label ID="PasswordLabel" runat="server" AssociatedControlID="Password">Password:</asp:Label>
- <asp:TextBox ID="Password" runat="server" CssClass="passwordEntry" TextMode="Password"></asp:TextBox>
- <asp:RequiredFieldValidator ID="PasswordRequired" runat="server" ControlToValidate="Password"
- CssClass="failureNotification" ErrorMessage="Password is required." ToolTip="Password is required."
- ValidationGroup="LoginUserValidationGroup">*</asp:RequiredFieldValidator>
- </p>
- </fieldset>
- <p class="submitButton">
- <asp:Button ID="LoginButton" runat="server" CommandName="Login" Text="Log In"
- ValidationGroup="LoginUserValidationGroup" onclick="submitBtn_Click"/>
- </p>
- </div>
- </LayoutTemplate>
- </asp:Login>
- </asp:Content>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement