Quantcast
Channel: Security
Viewing all articles
Browse latest Browse all 4737

problem in login control

$
0
0

i used login control the user get registered but when i used login contrl user goes not get authenticated 

i used this code:

if (Membership.ValidateUser(Login1.UserName, Login1.Password))
{

if (Roles.IsUserInRole("VENDOR"))
{

Response.Redirect("~/employee/empmain.aspx");

}

else if (Roles.IsUserInRole("H.O.D"))
{

Response.Redirect(@"~\h.o.d\hodhome.aspx");

}


Viewing all articles
Browse latest Browse all 4737

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>