Hi everyone. I have a problem is i don't know the way to display "Role" on website.
For example:when you access a website and "log in" into it.You will see "My Account | Log out" if you're user and you will see "My Account| Log out |Manage website" if you're admin.I don't know how to display like that.Please tell me if you know !!Thanks so much.
Loading

Javeed M ShaikhRank #839 · 2.7K reputationPosted Oct 24, 2011, 6:40 PM EDT
take a look at this C# Corner article to begin with:
http://www.c-sharpcorner.com/UploadFile/abhikumarvatsa/1686/
viet vo quoc114 reputationPosted Oct 24, 2011, 8:21 PM EDT
For example:In this site when you haven't login it will display "Log in" link and when you login into it look like "USER".It will display some RIGHTS for you :that is "My account | Log out" like picture and when you are ADMIN I guess it will display "My account | Log out | Manage website" .I dont' know code to do it?
Help me.Thanks.
Javeed M ShaikhRank #839 · 2.7K reputationPosted Oct 25, 2011, 4:37 AM EDT
http://www.codeproject.com/KB/aspnet/ASPDOTNETauthentication.aspx
viet vo quoc114 reputationPosted Oct 25, 2011, 8:07 AM EDT