Author: RageMonkey | Posted on: 10/16/2008 6:51:32 AM | Views : 257

 Hi guys
I am building a site that needs to restrict users based on what company they are from.
Currently I have a profile field that stores the companyID when the user is created.
What would be the best way to restrict users from a directory (using a web.config file or otherwise) based on that orgID?
Id rather not create a group for each company or manualy edit the
web.conf file for each section everytime I add a new company in.

I am tempted to do it using separate masterpages/ Page_Load etc for each section, but I cant help thinking there must be a cleaner way where I don't have to worry about using the correct Masterpage or dragging something in on each page.
Id appreciate any help and promise to click that Answer button 

 
...

Go to the complete details ...