Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <form id="form1" runat="server">
- <div class="Absolute-Center">
- <asp:LoginView ID="LoginView1" runat="server">
- <AnonymousTemplate>
- <asp:Login ID="Login1" runat="server">
- <LayoutTemplate>
- <table cellpadding="1" cellspacing="0" style="border-collapse:collapse;">
- <tr>
- <td>
- <table cellpadding="0">
- <tr>
- <td align="center" colspan="2">Log In</td>
- </tr>
- <tr>
- <td align="right">
- <asp:Label ID="UserNameLabel" runat="server" AssociatedControlID="UserName">User Name:</asp:Label>
- </td>
- <td>
- <asp:TextBox ID="UserName" runat="server"></asp:TextBox>
- <asp:RequiredFieldValidator ID="UserNameRequired" runat="server" ControlToValidate="UserName" ErrorMessage="User Name is required." ToolTip="User Name is required." ValidationGroup="ctl08$Login1">*</asp:RequiredFieldValidator>
- </td>
- </tr>
- <tr>
- <td align="right">
- <asp:Label ID="PasswordLabel" runat="server" AssociatedControlID="Password">Password:</asp:Label>
- </td>
- <td>
- <asp:TextBox ID="Password" runat="server" TextMode="Password"></asp:TextBox>
- <asp:RequiredFieldValidator ID="PasswordRequired" runat="server" ControlToValidate="Password" ErrorMessage="Password is required." ToolTip="Password is required." ValidationGroup="ctl08$Login1">*</asp:RequiredFieldValidator>
- </td>
- </tr>
- <tr>
- <td colspan="2">
- <asp:CheckBox ID="RememberMe" runat="server" Text="Remember me next time." />
- </td>
- </tr>
- <tr>
- <td align="center" colspan="2" style="color:Red;">
- <asp:Literal ID="FailureText" runat="server" EnableViewState="False"></asp:Literal>
- </td>
- </tr>
- <tr>
- <td align="right" colspan="2">
- <asp:Button ID="LoginButton" runat="server" CommandName="Login" CssClass="button" PostBackUrl="~/home.aspx" Text="Log In" ValidationGroup="ctl08$Login1" />
- </td>
- </tr>
- </table>
- </td>
- </tr>
- </table>
- </LayoutTemplate>
- </asp:Login>
- <br />
- <div style="text-align: center;">
- <a class="button" style="margin-right: 2em;" href="signup.aspx">Register</a>
- <a class="button" href="forgotpassword.aspx">Forgot Password</a>
- </div>
- </AnonymousTemplate>
- <LoggedInTemplate>
- <asp:Label ID="logOutLabel" runat="server" Text=""></asp:Label>
- <br /><br />
- <div style="text-align: center;">
- <asp:LinkButton ID="logOutButton" runat="server" class="button" OnClick="logOutButton_Click">Log Out</asp:LinkButton>
- </div>
- </LoggedInTemplate>
- </asp:LoginView>
- </div>
- </form>
- <configuration>
- <system.web>
- <compilation debug="true" targetFramework="4.5.2" />
- <httpRuntime targetFramework="4.5.2" />
- <authentication mode="Forms">
- <forms loginUrl="login.aspx" name=".ASPXFORMSAUTH">
- </forms>
- </authentication>
- </system.web>
- <appSettings>
- <add key="ValidationSettings:UnobtrusiveValidationMode" value="None" />
- </appSettings>
- </configuration>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement