ASP.NET Page /Login.aspx (C#)
Uses Code Behind Page Page /Login.aspx.cs (C#)
1: <%@ Page Language="C#" AutoEventWireup="true" MasterPageFile="~/Master/MasterPage.master" Inherits="QuiznetOnline.Web.UI.Login" Codebehind="Login.aspx.cs" %>  
2: <%@ MasterType VirtualPath="~/Master/MasterPage.master" %>  
3: <asp:Content ID="MainContent" ContentPlaceHolderID="MainContentPlaceHolder" runat="server">  
4:   
5: <script runat="server">  
6: bool IsValidEmail(string strIn)  
7: {  
8:     // Return true if strIn is in valid e-mail format.  
9:     return Regex.IsMatch(strIn, @"^([\w-\.]+)@((\[[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.)|(([\w-]+\.)+))([a-zA-Z]{2,4}|[0-9]{1,3})(\]?)$");  
10: }  
11: </script>  
12:   
13: <table style="height: 100%" class="Inner_Table" width="100%" border="0" align="center">  
14: <tr>  
15:     <td valign="top" align="center">  
16:   
17:     <asp:Panel ID ="Panel1" runat="server" DefaultButton ="WebLogin$LoginButton">  
18:        <asp:Login ID="WebLogin" runat="server" BackColor="#cccccc" Font-Size="X-Small"  
19:             DestinationPageUrl="~/Default.aspx" BorderWidth="1px" OnLoggedIn="WebLogin_LoggedIn"  
20:             DisplayRememberMe="true" RememberMeSet="true" RememberMeText="Next time automatically sign me in "  
21:             OnAuthenticate="WebLogin_Authenticate" TextBoxStyle-Font-Bold="true" Font-Bold="true"  
22:             UserNameLabelText="E-mail address:" UserNameRequiredErrorMessage="E-mail address is required." PasswordLabelText="Password:"  
23:             BorderStyle="Solid" CssClass="horizCenteredPanel" PasswordRecoveryText="Forgot Password?"  
24:             InstructionText=" " CreateUserText="Need a user account?" CreateUserUrl="~/UserLogin/CreateUser.aspx"  
25:             PasswordRecoveryUrl="~/UserLogin/PasswordReset.aspx">  
26:           <TitleTextStyle BackColor="Blue" BorderColor="Blue" ForeColor="white" BorderStyle="Solid" BorderWidth="1px" Font-Bold="True" />  
27:           <CheckBoxStyle HorizontalAlign="Left" Wrap="False" />  
28:           <TextBoxStyle Width="200px" />  
29:           <LoginButtonStyle CssClass="LinkButton" />  
30:           <LabelStyle HorizontalAlign="Left" Wrap="False" />  
31:           <HyperLinkStyle CssClass="LinkButton" HorizontalAlign="Left" />  
32:           <FailureTextStyle HorizontalAlign="Left" />  
33:           <InstructionTextStyle HorizontalAlign="Left" />  
34:        </asp:Login>  
35:     </asp:Panel>  
36:     </td>  
37: </tr>  
38:     
39: </table>            
40: </asp:Content>  
41:   

.NET Documentation Tool is © 2002 - 2009 Winnersh Triangle Web Solutions Limited.