User Control Page /DesktopModules/Signin.ascx (C#)
Uses Code Behind Page Page /DesktopModules/Signin.ascx.cs (C#)
1: <%@ Control language="c#" Inherits="ASPNetPortal.Signin" CodeBehind="Signin.ascx.cs" AutoEventWireup="false" %>
2: <%--
3:
4:    The SignIn User Control enables clients to authenticate themselves using  
5:    the ASP.NET Forms based authentication system.
6:
7:    When a client enters their username/password within the appropriate
8:    textboxes and clicks the "Login" button, the LoginBtn_Click event
9:    handler executes on the server and attempts to validate their
10:    credentials against a SQL database.
11:
12:    If the password check succeeds, then the LoginBtn_Click event handler
13:    sets the customers username in an encrypted cookieID and redirects
14:    back to the portal home page.
15:
16:    If the password check fails, then an appropriate error message
17:    is displayed.
18:
19: --%>
20:
21: <hr noshade size="1" width="98%">
22: <span class="SubSubHead" style="HEIGHT:20px">Account Login</span>
23: <br>
24: <span class="Normal">Email:</span>
25: <br>
26: <asp:TextBox id="email" columns="9" width="130" cssclass="NormalTextBox" runat="server" />
27: <br>
28: <span class="Normal">Password:</span>
29: <br>
30: <asp:TextBox id="password" columns="9" width="130" textmode="password" cssclass="NormalTextBox" runat="server" />
31: <br>
32: <asp:checkbox id="RememberCheckbox" class="Normal" Text="Remember Login" runat="server" />
33: <table width="100%" cellspacing="0" cellpadding="4" border="0">
34:     <tr>
35:         <td>
36:             <asp:ImageButton id="SigninBtn" ImageUrl="~/images/signin.gif" runat="server" />
37:             <br>
38:             <a href="Admin/Register.aspx"><img src="images/register.gif" border="0"></a>
39:             <asp:label id="Message" class="NormalRed" runat="server" />
40:         </td>
41:     </tr>
42: </table>
43: <br>