Author: utpal.phukan2008 | Posted on: 9/12/2010 8:31:39 AM | Views : 299

I am using Formsauthentication. My situation is as per below:
the login form has codebehind :
==============================

protected void LoginButton_Click(object sender, EventArgs e)
        {
            TextBox uname = Login1.FindControl("UserName") as TextBox;
            TextBox pass = Login1.FindControl("Password") as TextBox;
            CheckBox rm = Login1.FindControl("RememberMe") as CheckBox;
            Literal fail = Login1.FindControl("Literal1") as Literal;

            if (Membership.ValidateUser(uname.Text, pass.Text))
      &nb ...

Go to the complete details ...