I am trying to create a login system from a page other than login.aspx, as a matter of fact it is the home page itself. I know that this must be an easy question but ive been working on it for a little while now to no avail. I need to authenticate the user and redirect to a page. Simple. This is not the login.aspx page although there is this page available.
here is the code i am using to no avail, ive tried other things too but they didnt work either
If Membership.ValidateUser(txtUserName.Text, txtPassword.Text) Then
If FormsAuthentication.Authenticate(txtUserName.Text, txtPassword.Text) Then