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…


ASP.NET MVC: Adding Html attributes in Templated Helpers (EditorFor)

Recently Simon Ince and Stuart Leeks independently started working on solving the same challenge in ASP.NET MVC. Once we realised this we combined our efforts and this blog post is the result. We’ll walk through our approach – and hope you’ll be as pleased as we are with the simplicity of the solution. We’re wondering…


ADM: Workshop: ASP.NET MVC 3 Development Ramp Up

Date: 3rd & 4thApril 2012 Location: Thames Valley Park, Reading   SinceASP.NET MVC was released many of our customers have been considering or arealready adopting it for their new applications. It builds on your .NET skillswhilst using a Model View Controller pattern implementation coupled with otherconcepts to provide a highly testable, powerful web development framework….


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…


Mvc.ValidationTookit Alpha Release: Conditional Validation with MVC 3

My blog posts on doing conditional validation in MVC have always been popular, and I’m frequently surprised by where I find that code – customers often say to me “we found some guys blog with some code to do the validation we needed” and sure enough it usually turns out to be mine! There are…


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,…


ADM 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 session is charged at the rate of 8 hour per delegate. If you require further information on this subject after the event, you…


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…


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…


What’s My Day Job?

If you’re wondering what it is I (Simon Ince) 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…