ASP.NET MVC: Supplying HTML attributes with EditorFor

My colleague Simon Ince and I recently discovered that we had been working on the same problem independently so we combined our efforts and have written a joint blog post on our team blog. The problem was something that I’d encountered in a number of blog posts that used modified editor templates (jQuery UI datepicker,…

0

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…

0

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…

2

Claim-based-security for ASP.NET Web APIs using DotNetOpenAuth

Source Code Recently I worked with a customer assisting them in implementing their Web APIs using the new ASP.NET Web API framework. Their API would be public so obviously security came up as the key concern to address. Claims-Based-Security is widely used in SOAP/WS-* world and we have rich APIs available in .NET Framework in…

0

ASP.NET MVC & jQuery UI autocomplete Part 2 (EditorFor)

I recently blogged about how to enable autocompletion of a text field using jQuery UI, and how to easily hook this behaviour up in ASP.NET MVC. In this post I’ll go a step further and show how to hook this behaviour up even if you are using Html.EditorFor. In the previous post, we specified the…

0