Want to build the ChatGPT based Apps? Start here
Become a member
Login
No unread comment.
View All Comments
No unread message.
View All Messages
No unread notification.
View All Notifications
Answers
Post
An Article
A Blog
A News
A Video
An EBook
An Interview Question
Ask Question
C# Corner Home
Technologies
Monthly Leaders
ASK A QUESTION
Forum guidelines
Damien Sullivan
2.2k
26
7.8k
Hide/Display Content Based on Which User is Logged In
Jan 29 2017 6:15 AM
Hi,
I am developing an ASP.NET Web forms website using C# and SQL Server.
Here is my requirement:
There are 3 users of the website, Anonymous, Master Admin and General Admin.
Anonymous: Users who are not logged into the website, but can view all pages except Admin.aspx.
Master Admin: Logged in, can view all pages, and all content on Admin.aspx
General Admin: Logged in, can view all pages, but only some content on Admin.aspx.
I have tried to copy this tutorial: http://www.aspsnippets.com/Articles/Implement-Role-based-security-Page-access-and-ShowHide-Menu-items-based-on-Role-in-ASPNet.aspx but I haven't been able to get it working.
Can anyone point me to another example?
The problem with the above example is that I'm getting stuck on the Validate_User stored procedure, where am I going wrong?
Reply
Answers (
2
)
how TO make windows application license
What is OWIN Concept and is it different from OAuth