Welcome to the Mild Portal

Home of the Mild Family, living in Bound Brook, NJ. Presently, the website is used by Bill for combined business and personal ends. Bill is married to Joanne and we have 5 children: Billy, Joseph, David, Joshua, and Paul.

Recent Blog Entries

What's the difference between Convert.ToInt32(string) and Int32.Parse(string)?

Friday, June 04, 2010

The two give identical results, except where the string is null. Convert.ToInt32(null) returns zero, whereas Int32.Parse(null) throws anArgumentNullException. hat tip: http://www.yoda.arachsys.com/csharp/faq/#convert.parse ... more

Fawn in the Raspberry Bush

Thursday, June 03, 2010

The whole family was in the Catskills when a deer ran past the house. Shortly after, a beautiful fawn passed by also and hid in a raspberry patch. I took this picture. The fawn stayed there for hours until dusk, when he/she (?) walked slowly and uncertainly up the hill a little calling for her mother, sounded halfway between a bird and a human. She stopped and stayed near the knoll of the hill ... more

Running .NET 4.0 in IIS 7.5 for the First Time

Monday, March 15, 2010

Today, I tried my hand at running an asp.net 4.0 (release candidate) web app for the first time in IIS 7.5.  I was getting all kinds of errors, the latest one being Handler "PageHandlerFactory-Integrated" has a bad module "ManagedPipelineHandler" in its module listAnyhow, I thought I’d mention on this blog how I got it working.   Turned out .Net Framework 4.0 was not registered properly.  After ... more

Turning a DateTime into a Friendly String

Saturday, March 13, 2010

Over at http://www.primershee.com/Forum.aspx, the date column shows a friendly string version of when each post was last updated.  I used the following extension method… public static string ToFriendlyString(this DateTime date) { if (date.DayOfYear < DateTime.Now.DayOfYear) return date.ToString(); else { TimeSpan span ... more

AddWeekDays Extension Method

Thursday, March 11, 2010

Ever need to add week days to a date?  Use this extension method… public static DateTime AddWeekDays(this DateTime startDate, int days) { DateTime d = startDate; int i = 1; while (days >= i) { d = d.AddDays(1); if (d.DayOfWeek != DayOfWeek.Saturday & d.DayOfWeek != DayOfWeek.Sunday) i++; ... more