Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
RedirectFromLoginPage does not appear to work
Message
Information générale
Forum:
ASP.NET
Catégorie:
Autre
Divers
Thread ID:
00865724
Message ID:
00865737
Vues:
11
Hi Chris,

Have you traced in the debugger that the RedirectFromLoginPage actually is called?

If so, then I would temporarily remove authentication and make sure your calling page is working correctly.

>Hi - I am developing an ASP.NET applications using Forms authentication. I have successfully got the browser to my login page whenever a user requests another page in the 'secure' area but when valid credentials are entered the login refreshes and that's it. The url that the user was attempting to access is appearing in the address bar OK and I have tested that the username and password is validated OK and all seems well!
>
><SCRIPT RUNAT="server">
>Sub cmdSubmit_Click(sender as Object, e as EventArgs)
>If FormsAuthentication.Authenticate(txtUser.Text, txtPass.Text) Then
>	FormsAuthentication.RedirectFromLoginPage(txtUser.Text, false)
>Else
>	lblMessage.text = "Invalid login"
>End If
>End Sub
></SCRIPT>
>
>
>Any ideas appreciated...
-----------------------------------------

Cathi Gero, CPA
Prenia Software & Consulting Services
Microsoft C# / .NET MVP
Mere Mortals for .NET MVP
cgero@prenia.com
www.prenia.com
Weblog: blogs.prenia.com/cathi
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform