Mvc.ValidationTookit Alpha Release: Conditional Validation with MVC 3

Update: I’ve not forgotten about this everyone, apologies for the delay. My attempt to get approval to publish failed due to vacations (mine and others) so as soon as I can I’ll try again. My blog posts on doing conditional validation in MVC have always been popular, and I’m frequently surprised by where I find…

16

Immersive MVC and jQuery: Project Silk

Patterns and Practices have just released their latest round of guidance for developing web applications – “Project Silk”. I’ve been watching what they generate closely and I think you’ll be impressed. To quote the landing page; “Project Silk provides guidance for building maintainable cross-browser web applications that are characterized by an intentional design, rich interactivity,…

0

Project Silk: Patterns and Practices do Rich Web Apps

My blog has been quiet of late – because our team is busy I think. We’re recruiting by the way Something I’ve been wanting to blog about for a while now is “Project Silk”. This is Patterns & Practices latest round of web development guidance. Karl Shifflett  is the man at the wheel, so be…

1

JavaScript Architecture

No, that isn’t meant to be an oxymoron. But something I’ve noticed recently is that people’s approach to JavaScript seems to be diverging down two common paths. This blog post is designed to encourage you to adopt the one you probably aren’t planning to adopt right now! The approaches I’m describing are depicted below; Keep…

10

What’s My Day Job?

If you’re wondering what it is I do all day, the UK TechNet Blog have just published an interview with me as part of their “day in the life” series, which looks at the various technical roles within Microsoft UK. Be sure to check the others out too! On a related note, if you’re curious…

2

Detecting which button was clicked in MVC

I’ve seen a few hacks in the past to try and work out which button caused a form POST in ASP.NET MVC, but the truth is it is pretty easy. Step 1: Inside your form, add two Submit buttons. Add a name attribute to both (note it isn’t added by MVC by default); 1: <p>…

8

Conditional Validation in ASP.NET MVC 3

Update: If you like this, you’ll like Mvc.ValidationTookit even more – check out this post! Some time ago I blogged on Conditional Validation in MVC, and Adding Client-Side Script to an MVC Conditional Validator. A number of people have asked me to update the sample to MVC 3, so guess what – it’s your birthday!…

27

ASP.NET MVC 3 Optional Parameter Routing Issue

Update: Phil Haack has now blogged on this under Routing Regression With Two Consecutive Optional Parameters. When upgrading the Labs and Demo code for a course I run from MVC 2 to MVC 3 I discovered some odd behaviour with one of the routes. We  have a very simple route to handle an “archive” page…

4

Unit Testing ASP.NET MVC Routes

Two things I always encourage customers to do are; Always delete the default route pattern after a File –> New project. This helps you focus on designing your routes throughout your site, and helps reduce SEO-unfriendly routes etc. Always unit test your routing table. For number two, this is because it is so easy to…

1

Optimising ASP.NET Performance

Something I do a lot with customers is improving their ASP.NET Web Site performance. Most people spend hours looking at server-side performance, but just don’t realise what kind of gains you can get by looking at often-overlooked settings. I’ve seen cases when enabling GZIP compression in IIS and setting up some content expiration headers alone…

1