Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
RedirectFromLoginPage does not appear to work
Message
 
À
Tous
Information générale
Forum:
ASP.NET
Catégorie:
Autre
Titre:
RedirectFromLoginPage does not appear to work
Divers
Thread ID:
00865724
Message ID:
00865724
Vues:
57
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...
Chris Maiden
Email
Web
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform