Automatic camel casing of properties with SignalR hubs

UPDATE: The code in this post relates to SignalR v1. For an updated version that works for SignalR v2 check out this post. I’ve been doing some work with SignalR recently. If you’ve not encountered SignalR before then take a look at the project wiki or Scott Hanselman’s post to find out more. By default,…

5

Flexible Conditional Validation with ASP.NET MVC – adding client-side support

Part 1 – Introducing RequiredIf Part 2 – Adding client-side support (this post) I’ve worked with a number of customers that wanted to be able to do cross-field validation of their models along the lines of “if property x is set then property y is required”. Some customers approached this using IValidatableObject, and others created…

9

Entity Framework 5: Controlling automatic query compilation

When working with LINQ to Entities, Entity Framework has to parse the expression tree from the LINQ query and convert it to SQL. It is possible to save the output of this using CompiledQuery, but this is something that you have to manually code. One of the new features coming in Entity Framework 5 (EF5)…

1

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

6

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

UPDATE: I’ve blogged about an more flexible way to wire up the editor template here. 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…

5

ASP.NET MVC: Adding aria-required attribute for required fields

UPDATE: I’ve blogged about an more flexible way to wire up the editor template here. There are a lot of things that you can do to make your site more usable and accessible. The Web Content Accessibility Guidelines (WCAG) includes techniques for Accessible Rich Internet Applications (ARIA). In this post we will look at one…

10

ASP.NET MVC & jQuery UI autocomplete

UPDATE: I’ve written a follow-up post that shows how to achieve this using Html.EditorFor here. If you get me started talking about ASP.NET MVC then it is quite possible that I’ll end up talking about Progressive Enhancement or Unobtrusive JavaScript. Aside from the usability and performance benefits that these techniques can bring, I find that…

11

WebGrid extensions on NuGet

If you’ve not read my MSDN magazine article on using WebGrid to render tabular data then go read it now: http://blogs.msdn.com/b/stuartleeks/archive/2011/07/03/get-the-most-out-of-webgrid-in-asp-net-mvc.aspx! This post announces the NuGet package WebGridMvc that wraps up the custom WebGrid helpers. Why did I bother? Mostly because every time I’m talking about this stuff I have to remember where I put…

0