Sunday, May 24, 2015

Regular Expressions in Notepad++

Seems every text editor has its own flavor of RegExp, especially when it comes to using the most useful features.  I was used to the flavor Textpad used, but need to get used to the one Notepad++ uses.

\r\n is good to use for (Windows?) carriage-return, line-feeds:

Thursday, May 7, 2015

Hierarchy of config files
(aka Root Level Configuration Files)
(this has default httpHandlers, ie, *.ashx files)

Machine config

Machine web.config

Parent's web.config

your web.config

simplest use of Web.config

Put your value you want to retrieve in:

   <add key="colorOfDog" value="black">

then in code:

var whateveh = ConfigurationManager.AppSettings["colorOfDog"];

(using System.Configration;)