The Repository Pattern in ASP.NET – Part 2

This is the conclusion of Paul Cociuba’s 12-part series on ASP.NET 4.5. It has been a long journey, and for those who’ve missed out on previous parts, we’ve also linked the entire series at the end of this post. To finish the implementation of the application and the video series, this video will demonstrate how…


The Repository Pattern in ASP.NET – Part 1

Paul Cociuba shows us how to implement the Repository Pattern in ASP.NET 4.5. In the last two videos of the series, we will focus on implementing the repository pattern for the sample application. This pattern is a way in which we can structure the code of the application to abstract away the data access code…


Sorting and Pagination in ASP.NET 4.5

This is part 10 of Paul Cociuba’s series on ASP.NET 4.5. In this chapter, I want to focus on how the revamped data-controls from ASP.Net 4.5 can sort and paginate data using Entity Framework context as a starting point. I will focus on the GridView controls that display both the list of categories available and…


Unobtrusive JavaScript Validation in ASP.NET

As promised, Paul Cociuba is back with part 9 of his series on ASP.NET – and this time he discusses improvements in validation controls in ASP.NET 4.5. User input validation is an essential part of any data-driven web-application, and ASP.net exposes a wide range of validation controls to help developers achieve this easily. The validation…


Dynamic Data

It is July – and for us at Microsoft that signals the end of one fiscal year and the start of a new one. It has been a bit busy for us and hence the pause in our activity. We resume now with Part 8 of Paul Cociuba’s ASP.NET series. So far in the tutorial…


ASP.NET MVC – URL routing

This is the seventh part of Paul Cociuba’s series on ASP.net 4.5. In this we will look at a feature that is more commonly associated with ASP.net MVC – URL routing. URL routing first became available in the .Net Framework 3.5, and was used heavily in the releases of the MVC out of band update….


Session Value Providers in MVC

MVC purists may bristle at discussion of State and many would balk at the idea of leveraging Session variables in your MVC application. However, in the real-world, State is necessary. Stateless persistence can often be achieved through use of TempData, ViewData and ViewBack but purists would stress that state should be detached. True, MVC is…


MVC and Templates with T4 and T4MVC

The Editor and Display templates in MVC are very similar to partial views. They display data based on the model provided. You may have seen DisplayFor or EditorFor when you scaffold a View in MVC. You could customize DisplayFor to display an editable form but the convention is for DisplayFor to be read-only and EditorFor…