|
<%@ Page Language="C#" MasterPageFile="~/AuthMaster.Master" AutoEventWireup="true" CodeFile="login.aspx.cs" Inherits="login" Title="Login" %>
<asp:Content ID="Content1" ContentPlaceHolderID="ContentPlaceHolder1" Runat="Server">
<DIV align="center">
<asp:label id="lblError" runat="server" CssClass="error-text" Width="80%" ForeColor="Red"></asp:label>
<br />
<TABLE id="Table1" cellSpacing="1" cellPadding="1" width="400" align="center" border="0">
<TR>
<TD class="data-label" width="100">Username</TD>
<TD>
<asp:textbox id="txtUserName" runat="server" CssClass="standard-text" Width="138px"></asp:textbox></TD>
</TR>
<TR>
<TD class="data-label">Password</TD>
<TD>
<asp:textbox id="txtPassword" runat="server" CssClass="standard-text" Width="138px" TextMode="Password"></asp:textbox></TD>
</TR>
</TABLE>
<TABLE id="Table2" cellSpacing="1" cellPadding="1" width="400" align="center" border="0">
<TR>
<td width="100"> </td>
<TD align="left">
<asp:Button ID="btnLogin" runat="server" CssClass="button-style" OnClick="btnLogin_Click"
Text="Login" />
<INPUT class="button-style" type="reset" value="Clear">
<asp:CheckBox ID="ckRememberMe" runat="server" CssClass="standard-text" Text="Remember me" /> <br />
<br />
<asp:HyperLink ID="hlkForgot" runat="server" NavigateUrl="ResetPassword.aspx">Forgot my password</asp:HyperLink>
<asp:HyperLink ID="hlkSignUp" runat="server" NavigateUrl="Signup.aspx">Sign up</asp:HyperLink> [not
implemented]</TD>
</TR>
</TABLE>
</DIV>
<DIV align="center">
<asp:requiredfieldvalidator id="RequiredFieldValidator1" runat="server"
CssClass="error-text" ErrorMessage="Username is required!"
ControlToValidate="txtUsername" ForeColor="#CC3300" Display="Dynamic"></asp:requiredfieldvalidator>
<asp:requiredfieldvalidator id="RequiredFieldValidator2" runat="server"
CssClass="error-text" ErrorMessage="Password is required!"
ControlToValidate="txtPassword" ForeColor="#CC3300"></asp:requiredfieldvalidator><BR>
<BR>
<asp:Label ID="lblReturnUrl" runat="server" Visible="False"></asp:Label>
<asp:Label ID="lblSiteID" runat="server" Visible="False"></asp:Label></DIV>
</asp:Content>
|
By viewing downloads associated with this article you agree to the Terms of Service and the article's licence.
If a file you wish to view isn't highlighted, and is a text file (not binary), please
let us know and we'll add colourisation support for it.
Web & Database Developer. Design and implement web and database applications utilizing Microsoft and other development tools.