29 July 2010 - 11:50 PM / by Dominic Pettifer. 0 Comments for Static Variable Gotchas - Are Static Variables in Base Classes Shared In Derived Sub Classes?.
Development Gotchas - Something that caught me out recently is the behaviour of static variables in C# classes, and how they behave in derived classes. Also how does this differ with static variables in Generic<T> base classes? Finally, we use this understanding to create a generic base Singleton class.
15 July 2010 - 10:30 PM / by Dominic Pettifer. 2 Comments for Put an IOC Powered Bootstrapper in your ASP.NET MVC Application.
Technical Article - Do you have a fat Global.asax file in your ASP.NET MVC application? Does it contain 1000’s of lines of application start-up code? Want to break it out into separate classes and gain the benefits of decoupling, dependency injection and unit testability? Read on.
10 March 2010 - 11:35 PM / by Dominic Pettifer. 1 Image for IHttpModule Gotchas – The Init() Method Can Get Called Multiple Times. 3 Comments for IHttpModule Gotchas – The Init() Method Can Get Called Multiple Times.
Development Gotchas - When creating and registering IHttpModules, some people mistakenly think that only a single instance of the IHttpModule is created, and that the Init() method is only called once. I’ll explain how and why this is incorrect, and how this misunderstanding can lead to subtle bugs in your ASP.NET web application.
8 March 2010 - 11:55 PM / by Dominic Pettifer. 8 Comments for Dependency Injection in ASP.NET MVC 2 – Part 3: Custom DataAnnotation ValidationAttributes.
Technical Article - Part 3 in a series on Dependency Injection in ASP.NET MVC shows how to inject dependencies into custom ValidationAttributes, used to implement validation using the DataAnnotations framework. Have you ever needed to hit a database when validating a ViewModel/form submit, and wondered how to do it?
1 March 2010 - 11:50 PM / by Dominic Pettifer. 0 Comments for Dependency Injection in ASP.NET MVC 2 – Part 2: ModelBinders/ViewModels.
Technical Article - In part 2 of a series on Dependency Injection in ASP.NET MVC, we look at injecting dependencies into your ViewModels. This technique comes in useful for when you want to render a dropdown list of items from a database, and don’t want your controller populating the items.
28 February 2010 - 11:30 PM / by Dominic Pettifer. 3 Comments for Dependency Injection in ASP.NET MVC 2 – Part 1: Controllers.
Technical Article - In the first part of three, I show you how to perform Dependency Injection in ASP.NET MVC 2 using the Castle Windsor IOC (Inversion of Control) Container. In part 1 we look at injecting dependencies into your Controllers.
19 January 2010 - 11:23 PM / by Dominic Pettifer. 2 Comments for Strongly Typed <label> elements in ASP.NET MVC 2.
Cool C# Snippets - Generate strongly typed <label> elements in a way that is (IMHO) better than the default method built into ASP.NET MVC 2.
9 May 2009 - 4:21 AM / by Dominic Pettifer. 3 Comments for Stop IIS AppDomain Restarts When a Folder is Deleted.
Technical Article - I show you how to prevent IIS web server, and the ASP.NET worker process, from restarting your websites AppDomain whenever a folder is deleted (either programmatically or manually) in your web sites folder hierarchy.
7 May 2009 - 11:55 PM / by Dominic Pettifer. 4 Images for And So It Begins (part 2). 6 Comments for And So It Begins (part 2).
Personal Blog - Finally, my ASP.NET MVC blog is live.
18 March 2009 - 1:30 AM / by Dominic Pettifer. 15 Comments for ASP.NET MVC and Clean SEO Friendly URLs.
Technical Article - I show you how to generate SEO friendly URLs in ASP.NET MVC using the actual title/name of the record or item (product/blog name etc.) instead of the ID. That way we can have nice looking URLs that look like /products/123/apple-ipod-nano-4gb instead of /products/detail/123. The trouble is by default, ASP.NET MVC Html helpers don’t always encode the URL properly. Also how do we deal with updating the title, and old broken links?
Red Bull gives you wings....that generate huge amounts of downforce #F1
about 18 hours ago from Twitterrific.vampire { -webkit-box-shadow: none; -webkit-box-reflection: none; } #cssjokes
7:44 PM July 30th from Echofon@edhenderson lol, lets get a trending topic going - .gangster .wrapper { color: #000; width: 150%; text-decoration: bling; } #cssjokes
7:36 PM July 30th from Echofon@weblivz I think the petition should be resubmitted but with security stuff taken out, as that's what the response purely focused on
6:13 PM July 30th from Echofon@weblivz I still think Chrome Frame can come to the rescue here, still keep their old browsers + legacy systems, no retraining costs etc.
6:12 PM July 30th from Echofon