Dynamic Global Variable managed by Site Admin
Posted on 2007-11-16
I need to allow a Site Administration User to set a flag which will determine whether or not the website is currently accepting CC payments. If flag = true, then allow access to those pages. If flag = false, then don't.
I really don't want to have a table in my DB for this one flag. it seems like total overkill. But i also can't think of another, simpler way to do it. I was thinking about maybe creating an XML file to handle it. I also thought about doing this in the web.config (since that is basically an XML file already). That would mean that that particular <appsetting> would be dynmically set by the Site Admin. I read about this online and it doesn't sound like very many people think that is such a good idea. Any suggestions?