scropio gurl

scropio gurl

  • NA
  • 147
  • 99.1k

login through designation in asp.net

Nov 7 2013 1:27 PM
i have a two login types one is simpleuser and other is admin ...one admin is default admin he create accounts of other admins and he assign desginations and departments also
login code
if (users == 1)
{
Session["Login2"] = txt_username.Value;
 Session["Login3"] = txt_pass.Value;
Session["UserTypeID"] = users;
 Response.Redirect("AdminOp.aspx");
}
else if (users == 2)
{
Session["Login2"] = txt_username.Value;
 Session["Login3"] = txt_pass.Value;
Session["UserTypeID"] = users;
Response.Redirect("upload.aspx");
}
}
catch { Label8.Text = "Incorrect User Name or Password";
}
}


1 is admin and 2 is user when supervsior is login to
their account then he see menu where there is a options
like this this is adminOp.aspx
View Documents
</span>
 </a>
</li> <li>
 <a href="SuperVisor.aspx">
 <span> Approve Documents </span> </a> </li>

now when manager is login then how they access
their page and able to see their menu because in above options
 there is only supervisor ...what about done this is manager?