I’ll show you some screenshots, it will be easier to explain.
This is what I have :
http://www.noelshack.com/2012-23-1339063050-SiteWebV3.png
With my “root” account, I can access to the entire page.
This is what I’d like to have :
http://www.noelshack.com/2012-23-1339063050-SiteWebV3LimitedAccess.png
I want to limit access to users that are not root.
I know how to disallow access to the entire page, but I don’t know ( if it’s possible ) how to mask a part of my page.
I looked at this page but it didn’t help me for what I want to do.
Thanks in advance.
You can make two
WebUserControlsand can load them conditionally based on the type of user in the parent Page_Load Event or optionally you can make oneWebUserControland set user specific controls visibility to read-only/visible=false by just exposing a Public Property of thatUserControland set it on thePage_loadevent based on theUserType.You can do it something like this also
Hope it helps you in anyway