~ Access db backend & SHA1 or MD5 encryption ~ Web.config <system.web> <authentication mode=”Forms”> <forms loginUrl=”Login.aspx” timeout=”2880″/> </authentication> </system.web> Login.aspx <form id=”form1″ runat=”server” > <table > <tr> <td colspan=”2″><b>Login Form</b></td> </tr> <tr> <td>Intranet Username: </td><td style=”color: Red;” > <asp:TextBox ID=”usn” runat=”server” TextMode=”password” /> <asp:RequiredFieldValidator ID=”ReqVal_1″ controltovalidate=”usn” validationgroup=”Login1″ runat=”server” ErrorMessage=” ? ” > </asp:RequiredFieldValidator> </td> </tr> […]
Archive for December 27, 2010
Login
~ Access db backend ~ Web.config <system.web> <authentication mode=”Forms”> <forms loginUrl=”Login.aspx” timeout=”2880″/> </authentication> </system.web> Login.aspx <form id=”form1″ runat=”server” > <table > <tr> <td colspan=”2″><b>Login Form</b></td> </tr> <tr> <td>Intranet Username: </td><td style=”color: Red;” > <asp:TextBox ID=”usn” runat=”server” TextMode=”password” /> <asp:RequiredFieldValidator ID=”ReqVal_1″ controltovalidate=”usn” validationgroup=”Login1″ runat=”server” ErrorMessage=” ? ” > </asp:RequiredFieldValidator> </td> </tr> <tr> <td>Teller #: </td><td style=”color: […]
Login
~ Simple login application ~ Web.config <system.web> <authentication mode=”Forms”> <forms loginUrl=”~/ Login.aspx” timeout=”2880″/> </authentication> </system.web> Login.aspx <asp:Label ID=”UserNameLabel” runat=”server” AssociatedControlID=”UserName”>User Name:</asp:Label> <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=”Login1″>* </asp:RequiredFieldValidator> <asp:Label ID=”PasswordLabel” runat=”server” AssociatedControlID=”Password”>Password:</asp:Label> <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 […]