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...