Author: MasterDip | Posted on: 8/6/2008 8:28:24 PM | Views : 349

 .aspx Page

<asp:Login ID="Login1" runat="server" OnAuthenticate="Login1_Authenticate">
</asp:Login>
 .cs Page
protected void Login1_Authenticate(object sender, AuthenticateEventArgs e)
    {
        if(FormsAuthentication.Authenticate(Login1.UserName,Login1.Password))
        {
            FormsAuthentication.RedirectFromLoginPage(Login1.UserName,true);
        }
    }
 
Web.Config
<authentication mode="Forms">
            <forms cookieless="UseCookies" timeout="43200" defaultUrl="Test.aspx" loginUrl="Default.aspx">
      &n ...

Go to the complete details ...