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
viet vo quocPosted Oct 25, 2011, 12:07 PM
Javeed M ShaikhPosted Oct 25, 2011, 8:37 AM
http://www.codeproject.com/KB/aspnet/ASPDOTNETauthentication.aspx
viet vo quocPosted Oct 25, 2011, 12:21 AM
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 ShaikhPosted Oct 24, 2011, 10:40 PM
take a look at this C# Corner article to begin with:
http://www.c-sharpcorner.com/UploadFile/abhikumarvatsa/1686/