8.4. Summary

We have covered many topics in this chapter. We discussed paging and sorting of data grids. We registered a custom route. We talked about error handling and redirecting to a friendly error page using the HandleError attribute. We saw our validation framework in action on the client and on the server. We used a little bit of jQuery magic to select the item of a dropdown when the page loads. We used the ActionName attribute to assign a name to the action that is different from the method name. We did all this using TDD and have unit tests covering all the conditions that we can think of, so we should be feeling pretty comfortable and confident with our code so far.

Get ASP.NET MVC 1.0 Test Driven Development: Problem - Design - Solution now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.