I have a Web Forms site in ASP.NET using C#. I have a folder that I like to modify so only certain users can access it. I've already done this through the web.config file of the folder with:
<authorization>
<allow users="User1, User2, User3" />
<deny users="*" />
</authorization>
But I have a string list with all the users that need to be put in the 'allow users' attribute. The string list gets populated by a Table in the database. So I want to use the string list or the database instead of manually writing all the users in 'allow users' attribute. How do I do this? Even if using AppSettings, still don't know how to actually do that.