Brian's Blog

items I see across my tribes

BE.N Page Security User Control

January 18
by briancarter 18. January 2009 16:56

I've been using BE.N for some time.  I use it for 1/2 dozen client sites and now others.  One request I get over and over... can you add a page to our application for feature x and y - only allow my floor managers access - only allow me access.  Well, after reading how LavaBlast accomplished this for post; some ideas came came to mind. 

I needed to secure pages, the dynamic pages you create.  I didn't want to mess with the engine, since I like to upgrade with little hassles.  My architecture and design is to only build controls, since I can share, deploy, and update very quickly.  That's RAD. 

So I would like to share a control that I build for page security.  Put this control in your "User controls" folder.  Create your page and add the control to any dynamic page you create:

 

Need multiple roles, simply add them with a comma separator: Administrators,Managers.  Code is attached - let me know your thoughts. 

Thank You for listening.   

SecurityRole.ascx.zip (889.00 bytes)

Categories: Development

Comments are closed

 Questions or Feedback, my contact information is located on my About page.


The opinions, thoughts, and comments made in these blog posts are solely my own (unless otherwise stated). They do not reflect the opinions, thoughts or practices of my employer, my universities, my family, or anyone else. Also, I retain the right to change my mind about anything I publish here without having to go back and edit posts that occurred in the past. 

These are my opinions, or just as likely, someone else's opinions that I leveraged for my own.