Tech
Forums
Jobs
Books
Events
Interviews
Live
More
Learn
Training
Career
Members
Videos
News
Blogs
Login
Sign Up
Ask Question
2
Reply
Hide/Display Content Based on Which User is Logged In
Damien Sullivan
Jan 29 2017 6:15 AM
405
Reply
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?
Upload Source Code
Select only zip and rar file.
Post
Reset
Cancel
Answers (
2
)
Next Recommended Forum
how TO make windows application license
What is OWIN Concept and is it different from OAuth