You can get the role from the database when the user logs in the database based on his userid
Than you can write the if else statement to hide show controls
For example:
if(role.Trim().Toupper() == "A role")
{
//Write the code to hide show respective controls
}
else if(role.Trim().Toupper() == "B role")
{
//Write the code to hide show respective controls
}
else
{
//Write the code to hide show respective controls
}
and see it will work as you want.