View a Generic List with ASP.NET MVC. Step by Step With Preview 5

I've just started (within the past 2 days) learning and building a prototype with Microsoft's new MVC platform.  It's really just another project type in Visual Studio 2008, but it changes the way you write applications.  So far I like it, but I'm still on the honeymoon.  I have not really tried to do anything complex yet, and because it's new to me, the simple things are still hard.  Scott Guthrie's posts posts have been helpful, as well as reading a pre-release of Manning's upcoming book ASP.NET MVC In Action by Jeffrey Palermo, Ben Scheirman and Jimmy Bogard. … Continue Reading

ToLambda Refactor From ReSharper is Just Too Cool!

Can hardly contain my excitement.  I was just cleaning up a business object to post in my MVC article and of course was using JetBrain's Resharper 4.1.  Not sure if any of you remember, but when I started learning ASP.NET I developed some nice business objects to use with my MSDN articles.  One of the nice tricks used is using anonymous delegates to sort lists.  The code was a little tricky, but id did the job.  Here is the old code:   [DataObjectMethod(DataObjectMethodType.Select, true)] public List<BusinessObjectItem> GetMembers() { listBusinessObject.Sort( new Comparison<BusinessObjectItem>( delegate(BusinessObjectItem lhs, … Continue Reading

How to User HttpHandler such as .ashx file with IIS7 Integrated Mode, Webfarm Environment

Recently, we've moved our hosting for the Silicon Valley Code Camp to MOSSO, which is a hosted web farm.  In order to run modules and handlers, it seems it's necessary to run in IIS7's integrated mode.  Once this is set, other small issues creep up like for example you can no longer run HttpHandler's from the standard HttpHandler's section in your web.config file (see below) <httpHandlers> <remove verb="*" path="*.asmx"/> <add verb="*" path="*.asmx" validate="false" ... <add verb="*" path="*_AppService.axd" validate="false" ... <add verb="GET,HEAD" … Continue Reading

How to do URL Rewrites with ASP.NET 2.0 3.0 3.5 on IIS6 and IIS7 and What is Wild Card Mapping

The Problem Over the past several years I've found myself running into the same problem over and over so I thought I'd blog the solution so at least I don't waste time figuring it out again.  So, when do you need this?  The answer for me is that I want to be able reference a web site without having to expose the underlying site structure.  For example, on the home page of my business, I want people to be able to type and be taken to The Symptom You may see errors that say something like: Server Error in Application ... HTTP Error 404.0 - Not Found … Continue Reading


Get every new post delivered to your Inbox

Join other followers: