Monthly Archives: December 2008

GAC Conflicts with ASP MVC

By some strange combination of beta and pre-release candidate installs I managed to create some serious conflicts with ASP.NET MVC. Thereby producing this wonderful little error: Compiler Error Message: CS0433: The type ‘System.Web.Mvc.FormMethod’ exists in both ‘c:\WINDOWS\assembly\GAC_MSIL\System.Web.Mvc\1.0.0.0__31bf3856ad364e35\System.Web.Mvc.dll’ and ‘c:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\Temporary ASP.NET … Continue reading

Posted in ASP.Net, c# | 1 Comment

Round datetime to nearest 5 minutes

This took me forever to find online, so I’m posting it here for the next helpless soul. If you need to round datetimes coming out of sql to the nearest 5 minutes, here you go. dateadd(mi,(datepart(mi,dateadd(mi,1,DateTimeColumn))/5)*5,dateadd(hh,datediff(hh,0,dateadd(mi,1, DateTimeColumn)),0))

Posted in Uncategorized | Leave a comment

Personal Blog

If you want to hear random drivel about my life, I’ve started a personal blog over at willshaver.com. I will continue to use this one for software related posts.

Posted in Uncategorized | Leave a comment

Headaches with ASP.MVC UI Helpers

I’ve been beating my head against the UI helpers a lot lately and wanted to share a frustration point. Say I want to do something using the DropDownList, so you map a property on your page that returns a Select … Continue reading

Posted in Uncategorized | 1 Comment

Sql Server DateTime Conversion

Suppose that your model requires selecting over a date range. It is frequently more convenient to store DateTime.MinValue than it is to store a NULL as this allows for easy selecting without doing a bunch of field < value or … Continue reading

Posted in c#, NHibernate | 1 Comment

JQuery In Action

JQuery In Action: 347 Pages, not a single mention of the queue() method. To be fair, they do mention “mainaining state”. (sic)

Posted in Uncategorized | Leave a comment