I’ve changed role

Well it’s happened; a short while ago I left the UK PSfD (Premier Support for Developers) team for new horizons. I had an awesome time in that team, and learned a lot from some very clever people – so if you fancy it check out the Microsoft careers site as they’re hiring at the moment!…

1

Injecting Custom HTML Attributes in ASP.NET MVC

Recently Stuart Leeks and I have developed a worrying pattern of having the same ideas at the same time. I’m starting to doubt we’re different people. Except he’s about a foot taller so maybe that’s aspirational from my side. Our latest coinciding of ideas was a way to automatically inject HTML attributes for fields rendered…

1

Templated Razor Delegates combined with Partial Views

I was with a customer in Germany this week, and just before I left one of the (rather talented I might say) developers asked me about passing markup into an HtmlHelper extension. It turns out this is pretty easy, as covered by Phil Haack under Templated Razor Delegates. However, I particularly like keeping my HTML…

0

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