Advertisement
Guest User

Untitled

a guest
Jul 4th, 2017
64
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C# 2.81 KB | None | 0 0
  1. <%@ Page Title="Log In" Language="C#" MasterPageFile="~/CarRental.Master"
  2.     CodeBehind="Login.aspx.cs" Inherits="LFS_EWDT.Account.Login" %>
  3.  
  4. <asp:Content ID="HeaderContent" runat="server" ContentPlaceHolderID="head">
  5. </asp:Content>
  6. <asp:Content ID="BodyContent" runat="server" ContentPlaceHolderID="ContentPlaceHolder4">
  7.  
  8.     <h2>
  9.         Log In
  10.     </h2>
  11.     <p>
  12.         Please enter your username and password.
  13.         <asp:HyperLink ID="RegisterHyperLink" runat="server" EnableViewState="False"
  14.             NavigateUrl="~/Account/Register.aspx">Register</asp:HyperLink> if you don't have an account.
  15.    </p>
  16.    <asp:Login ID="LoginUser" runat="server" EnableViewState="false" RenderOuterTable="false">
  17.        <LayoutTemplate>
  18.            <span class="failureNotification">
  19.                <asp:Literal ID="FailureText" runat="server"></asp:Literal>
  20.            </span>
  21.            <asp:ValidationSummary ID="LoginUserValidationSummary" runat="server" CssClass="failureNotification"
  22.                 ValidationGroup="LoginUserValidationGroup"/>
  23.            <div class="accountInfo">
  24.                <fieldset class="login">
  25.                    <legend>Account Information</legend>
  26.                    <p>
  27.                        <asp:Label ID="UserNameLabel" runat="server" AssociatedControlID="UserName">Username:</asp:Label>
  28.                        <asp:TextBox ID="UserName" runat="server" CssClass="textEntry"></asp:TextBox>
  29.                        <asp:RequiredFieldValidator ID="UserNameRequired" runat="server" ControlToValidate="UserName"
  30.                             CssClass="failureNotification" ErrorMessage="User Name is required." ToolTip="User Name is required."
  31.                             ValidationGroup="LoginUserValidationGroup">*</asp:RequiredFieldValidator>
  32.                    </p>
  33.                    <p>
  34.                        <asp:Label ID="PasswordLabel" runat="server" AssociatedControlID="Password">Password:</asp:Label>
  35.                        <asp:TextBox ID="Password" runat="server" CssClass="passwordEntry" TextMode="Password"></asp:TextBox>
  36.                        <asp:RequiredFieldValidator ID="PasswordRequired" runat="server" ControlToValidate="Password"
  37.                             CssClass="failureNotification" ErrorMessage="Password is required." ToolTip="Password is required."
  38.                             ValidationGroup="LoginUserValidationGroup">*</asp:RequiredFieldValidator>
  39.                    </p>
  40.                </fieldset>
  41.                <p class="submitButton">
  42.                    <asp:Button ID="LoginButton" runat="server" CommandName="Login" Text="Log In"
  43.                        ValidationGroup="LoginUserValidationGroup" onclick="submitBtn_Click"/>
  44.                </p>
  45.            </div>
  46.        </LayoutTemplate>
  47.    </asp:Login>
  48. </asp:Content>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement