PowerShell script to clean and zip a directory
As part of my role I’m often sending sample code to customers. Sometimes this is a small snippet inline in an email, but often it will be a zipped up Visual Studio solution. Simply zipping up the...
View ArticleCollections and ASP.NET MVC Templated Helpers – Part 2
This is part of a mini-series:Part 1– Define the problem & give a workaround Part 2 – Show an alternative workaround Part 3 – Show a reusable, simple solution Last time I outlined a problem that I...
View ArticleCollections and ASP.NET MVC Templated Helpers – Part 3
This is part of a mini-series:Part 1– Define the problem & give a workaround Part 2– Show an alternative workaround Part 3 – Show a reusable, simple solution This is the third part in a mini-series...
View ArticleUnity 2.0 – Automatic Builders
ContentsAutomatic FactoriesProperty InjectionContainer.BuildUpIntroducing “Automatic Builders”Creating “Automatic Builders”Automatic FactoriesI’ve been working with Unity 2.0 on a couple of projects...
View ArticleAjax Control Toolkit Coding Standards are Live
Two of our ADCs (Simon Ince and Stuart Leeks) have been coordinating work with people across Services and various product groups to produce a comprehensive set of coding standards for the Ajax Control...
View ArticleCollections and ASP.NET MVC Templated Helpers – Part 4
This is part of a mini-series:Part 1– Define the problem & give a workaround Part 2– Show an alternative workaround Part 3– Show a reusable, simple solution Part 4 – Replacing Object.ascx My last...
View ArticleASP.NET MVC: Adding client-side validation to ValidatePasswordLengthAttribute
When you create a new ASP.NET MVC 2 project in Visual Studio there are a number of files that are created. One of these is AccountModel.cs. If we ignore the fact that this one file contains multiple...
View ArticleASP.NET MVC: Adding client-side validation to ValidatePasswordLengthAttribute...
In the previous post we saw how we can add client-side validation to the ValidatePasswordLengthAttribute that is supplied in the default project template. To recap, the required steps were:The...
View ArticleExtensionless URLs not working with ASP.NET MVC 2 on IIS 7/7
This post is mostly a self-serving bookmark, but if you somehow landed here and are having issues with ASP.NET MVC 2 URL Routing (or routing in web forms if you’re using it there!) and are running on...
View ArticleBackwards compatibility and and preserving search engine ranking
Phew – that was a long title! This is a follow-up to a post that my colleague Josh wrote recently. I started typing a comment in response to one of the comments and it got a little bit cramped in the...
View ArticleUsing ASP.NET MVC and jQuery to create confirmation prompts
Having coded up samples several times showing how to add confirmation prompts to links on a web page I figured I’d post it here so that I can simply grab it next time round!My colleague Simon Ince&...
View ArticleASP.NET MVC: ValidatePasswordLength and PropertiesMustMatch in ASP.NET MVC 3 RC2
This is the fifth post in what is becoming a mini-series:ASP.NET MVC: Adding client-side validation to ValidatePasswordLengthAttributeASP.NET MVC: Adding client-side validation to...
View ArticleASP.NET MVC 3: Integrating with the jQuery UI date picker and adding a jQuery...
This is post looks at working with dates in ASP.NET MVC 3. We will see how to integrate the jQuery UI date picker control automatically for model properties that are dates and then see an example of a...
View ArticleDebugging ASP.NET MVC
One of the handy things about ASP.NET MVC is that the source code is available. I’ve found this pretty useful over time when wanting to understand how things work. And occasionally it has been pretty...
View ArticleASP.NET MVC: Partial rendering and AjaxAttribute
On a number of occasions I’ve been working with a customer on a scenario where we were adding some Ajax partial rendering support.. All too often demos for this scenario are over-simplified and only...
View ArticleADM Workshop: ASP.NET MVC 3 Ramp Up, 21st & 22nd June
ADM Workshop: ASP.NET MVC 3 Ramp Up, 21st & 22nd June Our next Workshop, “Windows Azure Orientation”, will be run on 21st and 22nd June at the Microsoft Campus (Thames Valley Park, Reading). The...
View ArticleGet the Most out of WebGrid in ASP.NET MVC
My first MSDN Magazine article is up: Get the Most out of WebGrid in ASP.NET MVC. So, if you want to find out how to make the WebGrid component from WebMatrix fit in with ASP.NET MVC then take a...
View ArticleASP.NET MVC resources
One of the fairly common questions I get asked is "what good resources are there for ASP.NET MVC?"The one that people are generally familiar with is www.asp.net/mvc - I think the memorable URL helps...
View ArticlePluggable Model Conventions
One of the things that I really like about ASP.NET MVC is its extensibility story.In the recent deliveries of the ASP.NET MVC Ramp Up I’ve shown a sample project with a few extension applied. Some of...
View ArticleFlexible Conditional Validation with ASP.NET MVC 3
What?My colleague Simon and I have each written conditional validators with a number of customers, and Simon has blogged about it a number of times. I’ve had another idea in this space that I’ve been...
View Article
More Pages to Explore .....