Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
RedirectFromLoginPage does not appear to work
Message
 
To
All
General information
Forum:
ASP.NET
Category:
Other
Title:
RedirectFromLoginPage does not appear to work
Miscellaneous
Thread ID:
00865724
Message ID:
00865724
Views:
59
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
Next
Reply
Map
View

Click here to load this message in the networking platform