Hello all,
I'm doing some testing with implementing my own login using the membership class. To make it simple, I used the ASP.NET 2.0 config tool and created 1 user. I then threw two text boxes (for usernam and password) and a button (to login) on my webform.
I should be able to authenticate by using this in the button's click event:
I don't understand why its not working. Does anyone know if I'm doing something wrong? I'm usnig ASP.NET 2.0 and VB 2005Code:'Login user If Membership.ValidateUser(txtUserName.text, "txtPassword.text") Then FormsAuthentication.SetAuthCookie(userName, False) Else 'Not Authenticated End If
Thanks,
Strick




Reply With Quote