Mondeo Posted January 8, 2007 Posted January 8, 2007 How can I use forms authentication in its most basic form, I just want a simple login system for a very basic site. Ideally i'm 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? Quote
tfowler Posted January 8, 2007 Posted January 8, 2007 4GuysFromRolla has a good tutorial on this subject: http://aspnet.4guysfromrolla.com/articles/120705-1.aspx Todd Quote
Mondeo Posted January 9, 2007 Author Posted January 9, 2007 Thanks for that, theres a very basic tutorial on there simply using a boolean session value to set if the user is authenticated or not. I think that would do fine for this job. Quote
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.