Archive for June, 2009

Return of the PagedList

// June 15th, 2009 // 12 Comments » // C#, LINQ, MVC

It has been nearly a year since I posted an updated version of the PagedList<T> functionality originally created by Scott Guthrie and posted by Rob Conery. Since then I have used the class in a number of projects and find it indispensable.

A few days ago, Craig Stuntz reported an interesting observation: when the first page is returned, the class performs a Skip(0). Suprisingly, this is not free. With that in mind, I set out to correct that issue as well as incorporate a few changes I’ve made over the past year. The result is nearly identical to the last posted version, just a bit more readable. Additionally…
(more…)

Kick It on DotNetKicks.comShout It on DotNetShoutOuts.com

Creating an MVC Project in Visual Studio 2010

// June 9th, 2009 // 8 Comments » // MVC

Earlier today Phil Haack announced that the Asp.Net MVC installer for Visual Studio 2010 Beta 1 is now available on CodePlex along with the bonus of some basic snippets for use with MVC projects. This is exactly what I have been waiting for before installing Visual Studio 2010, so I decided to give it a shot and report back on my experience. I’m happy to say that the basic experience went flawlessly for me, though it appears that may not hold true for everyone.

(more…)

Kick It on DotNetKicks.comShout It on DotNetShoutOuts.com