if i enter a number(the number is user id of different employee which is used to log in) in a input box (any person can put another employees id no to check email and other details)
if the person checking the details is a admin then all the details should be shown if he is not an admin then he should only see name and email id
how to code this
thanks
subin


Faisal PathanRank #291 · 8.6K reputationPosted Jan 24, 2019, 9:48 PM EST
Salman BegRank #284 · 8.8K reputationPosted Jan 24, 2019, 11:02 PM EST
Subin ThomasRank #724 · 3.2K reputationPosted Jan 24, 2019, 9:50 PM EST
Faisal PathanRank #291 · 8.6K reputationPosted Jan 24, 2019, 9:55 PM EST
if (role.ToLower().Equals("admin"))
{
//display code
}
else
{
//display user name
}
Subin ThomasRank #724 · 3.2K reputationPosted Jan 24, 2019, 11:38 PM EST