I am using C# and .Net I need to redirect a user to a specific URL when the authentication (using Membership providers) failed.
I was thinking to use
RedirectToLoginPage(String)
From MSDN: Redirects the browser to the login URL with the specified query string
But I need to change the URL.
Example of use:
if (!Membership.ValidateUser(userName, password))
{// do smt here}
Any other idea how to solve it?
For me this really works
aspx:
Code behind: