I Wrote the code like this
string user = (Login1.FindControl("UserName") as TextBox).Text;
MembershipUser GetUser = Membership.GetUser(user);
if (GetUser.IsOnline)
{
Literal ll = (Login1.FindControl("FailureText") as Literal);
ll.Text = "This User Already Logged in!";
}
This code returns true (GerUser.IsOnline) for all the UserName. That means if i enter "Sri" as username it returns true. In which place i have to write this code.. already i checked in the following Events
Login1_Authenticate and LoggingIn
Help me how to proceed.
Thaks
S.Srinivasan