C#

.NET Configuration File Madness

THE SETUP Pretend you want to open an app.config or web.config file.  OK, normally, that is easy.  But, let’s say you mange a bunch of config files, and you want to write a widget that can open any of them and edit them programmatically. That means opening a config file NOT part of your EXE

.NET Configuration File Madness Read More »

Using a Common Page in App_Code with Session Variables

Whooo that is a humdinger.  Normally, when someone says “I want my class to have access to the current session state!” I look at them funny, but here is the setup… I want to have global.asax set up some session goodies when someone hits my site, then I want all my web pages to work

Using a Common Page in App_Code with Session Variables Read More »