Quantcast
Channel: Security
Viewing all articles
Browse latest Browse all 4737

Assign Roles to Users and Control Displayed Content Based on Role

$
0
0

Hi,<br>
<br>
I am trying to implement roles in an ASP.NET Web Forms, using C# and SQL server.<br>
<br>
I've seen various online tutorials, but they are for earlier versions of ASP.NET I think.<br>
<br>
Can someone point me towards a recent tutorial, which I can use please?<br>
<br>
My requirement is:<br>
<br>
User types: Anonymous, Master_Admin, General_Admin.<br>
<br>
Anonymous will have access to all pages, except Admin.aspx.<br>
<br>
General_Admin &amp; Master_Admin will have access to Admin.aspx<br>
<br>
On the Admin.aspx page, Master_Admin will be able to see all content. While General_Admin will have some content hidden from them.<br>
<br>
Please can someone point me to a recent tutorial/post/ example which I can adapt to fit my problem?<br>
<br>
Thanks in advance.

Viewing all articles
Browse latest Browse all 4737

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>