Ben's code

Extension Methods are a handy way to extend built-in types like string or int. This is a collection of some very useful ones. more


Codeyou can run directly in LINQPad to create a conditional query more


need to chage identity data? use GetOwinContext more


Random thoughts on Back-end Web Developer philosophy more


Some tips to reduce coding mistakes when working on two copies of the same website more


Tutorial to read and write image metadata (IPTC and Exif) using C# and ImageMagick in ASP.NET / MVC more


Tutorial to colorize plain text as HTML code from a code editor more


How To Create a Google XML Sitemap from a SQL Server database in One.Net using LINQ to XML more


Read user added keys from the web.config file more


check if string could be a valid web address using regular expressions more


check if string could be a number using regular expressions more


check for jpeg/gif/png file extension using regular expressions more


Check if a string is properly formed using regular expression and so might be a valid email address more


Test a filename could be an audio file supported by the HTML5 audio player using regular expressions more


helper for System.IO.Path.GetFileName e.g. "/images/ben.jpg" returns "ben.jpg" more