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)
ex.
C:\Windows\Microsoft.NET\Framework\v4.0.30319\Config\machine.config
C:\Windows\Microsoft.NET\Framework\v4.0.30319\Config\web.config
(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:

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



then in code:

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

(using System.Configration;)