Membership.ValidateUser(username, password);
FormsAuthentication.SetAuthCookie(username, true);
ctlLogin.RedirectAfterLogin();
i used these codes on login.aspx page , now when i run the application it is always loggin as administrator even if the person is having user roleid
This content has not been rated yet.
353
Reputation
46
Total posts