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)