Mondeo
Well-known member
How can I use forms authentication in its most basic form, I just want a simple login system for a very basic site.
Ideally im trying to do something like this
Login button click
Dim username as string = "myusername"
Dim password as string = "mypassword"
If txtUsername.text = username And txtPassword.text = password Then
User.IsAuthenticated = True
Response.Redirect "privatearea/main.aspx"
Else
label1.text = "Access Denied"
End If
How can I do it?
Ideally im trying to do something like this
Login button click
Dim username as string = "myusername"
Dim password as string = "mypassword"
If txtUsername.text = username And txtPassword.text = password Then
User.IsAuthenticated = True
Response.Redirect "privatearea/main.aspx"
Else
label1.text = "Access Denied"
End If
How can I do it?