Garry Pilkington


Application Developer
Liverpool, UK

Browse by Tags

All Tags » .NET (RSS)
Multiple Strongly Typed Partial Views in MVC
Creating strongly typed views with the ASP.Net MVC framework is really easy, but what if you want to have multiple types on the same view? One way to achieve this is to create partial views for each type and creating a combined view model. Then the view...
Posted: Oct 20 2009, 09:29 AM by capgpilk | with 6 comment(s)
Filed under: , , ,
Unit Testing Videos
The Learn Visual Studio.net website has just published a new series on unit testing , covering an introduction to unit testing, using MSTest, and NUnit. These are always good sources of practical information to help you get up to speed on anything .net...
TempData and DropDownList in ASP.Net MVC
TempData Sometimes while developing web applications, you have a need to keep certain data between web requests. In asp.Net MVC you can use TempData which will keep hold of any values you pass to it for that request and the next request when it is then...
Posted: Sep 29 2009, 11:15 AM by capgpilk | with 6 comment(s)
Filed under: , ,
Code Snippet Plugin for Live Writer
For anybody who regularly displays code using Live Writer, then this plugin by Leo Vildosola is a must to check out. When ever I do a rebuild of any of my computers this has to go on and I always have trouble remembering where I found it. So here are...
LINQ Projection
just recently I have been doing quite a bit of work with LINQ and L2S in particular. Although LINQ is nothing new now and I am sure the vast majority of readers out there have had some form of introduction to LINQ. However one of the great things that...
Posted: Sep 08 2009, 10:00 AM by capgpilk | with 2 comment(s)
Filed under: , ,
Complex Types in the Entity Framework
In this post I will describe the process you need to go through to get a stored procedure to return a complex type in the Entity Framework. It is very easy in the Entity Framework to quickly create crud functions that will manipulate data in your tables...
LINQ to XML Quick Brain Dump
LINQ to XML is a simple toolset that allows developers to easily interact with XML, whether it be in file form of on the wire in string form. Write to an XML file There are a few methods within the System.Xml.Linq namespace which make this interaction...
Posted: Aug 25 2009, 09:10 PM by capgpilk | with 2 comment(s)
Filed under: , , ,
Do you test your private methods?
There is ample discussion on the blogosphere as to why you should or shouldn't test your private methods.  In the 'NO camp' http://www.redhillconsulting.com.au/blogs/simon/archives/000119.html , http://www.lostechies.com/blogs/chad_myers/archive...
Why I prefer c# over VB
A couple of weeks back I was asked by a friend of a friend why I code in c# over VB. I didn’t give him a very good answer at the time as I just couldn’t pinpoint the reason. Since then I have had a real good think about it and have come to this conclusion...
Posted: Feb 11 2009, 01:52 PM by capgpilk | with 10 comment(s)
Filed under: , , ,
Quickly reading technical articles and books
There is so much information out there pertaining to our jobs, a lot comes in the form of articles and books. How do you get through all this information fast without loosing comprehension? Well this is my technique. I have used this since my university...
More Posts Next page »