Hi, thank you, yes, I'd perhaps be better of using the standard login control, but I could not get that one validate with the xhtlm validator we use in the project. I will take a second look.
Vijay, ok, thanks, but I do not have the source for the ClientArea-dll.
Failed login - how to handle?
Hi! Can I take care of failed login in someway? I like to show the login page with an error message, but I don't see how. :-o
Thanks / Jonas
hi Jonas,
In my test application i m doing like this. I think below code is helpful to get some information.
if (txt_UserName.Text != "" && txt_Password.Text != "")
{
Member m = Member.GetMemberFromLoginNameAndPassword(txt_UserName.Text, txt_Password.Text);
Response.Write(m.Text.ToString());
if (m != null)
{
Member.AddMemberToCache(m,true,new TimeSpan(0,0,0));
Response.Redirect("some page", true);
}
else
{
Response.Redirect("/TestApplication-Login.aspx", true);
}
}
else
{
Response.Redirect("/TestApplication-Login.aspx", true);
}
-------- vijay.
Hi Jonas,
When you use the normal asp.net login control you can specify the FailureText property.
Cheers,
Richard
Hi, thank you, yes, I'd perhaps be better of using the standard login control, but I could not get that one validate with the xhtlm validator we use in the project. I will take a second look.
Vijay, ok, thanks, but I do not have the source for the ClientArea-dll.
Jonas,
Asp.net logins do spit out some strange html, but that can be avoided using the css adapters. See if that works for you!
Hope this helps.
Regards,
/Dirk
Thanks, I guess I will go for that css adapters.
Vijay, thanks, that was exactly what I needed to do. Added a simple function as xslt extension that tries to log in with that calls to members.
is working on a reply...