hi,
I want to check roles in master page before loading content pages.Each page has different roles.So i want to check the roles in master page before loading.I can't use sitemap as my page navigation is inconsistent or i can say irregular..
Is there a way i can control loading of content pages...if so,please let me know how? .Below is the sample what am trying to do..
public void CheckRolesForPermission()
{
int RoleID = Personnel.SystemRoleID;
if (RoleID == Convert.ToInt32(CommonType.SystemRole.Program_officer) || RoleID == Convert.ToInt32(CommonType.SystemRole.ITAdmin) || RoleID == Convert.ToInt32(CommonType.SystemRole.AppAdmin))
{
Response.Redirect ("DMIDPOView.aspx");
}
}
...
Go to the complete details ...