CHAPTER 10
Moving From Web Forms to ASP.NET MVC
10-1. Creating a Simple Data List Using ASP.NET MVC
Problem
You are an experienced ASP.NET Web Forms developer and, in the past, you used the ASP.NET Repeater control when you needed to build a simple data-driven list. You are new to ASP.NET MVC. You have been asked to implement a page that will display a list of the last 20 new members who signed up on your company’s web site. You would like to know the proper way to do this using ASP.NET MVC 4. If possible, you would like to leverage some of your existing code.
Solution
In ASP.NET Web Forms, the Repeater control is the least complex of the data ...
Get ASP.NET MVC 4 Recipes: A Problem-Solution Approach 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.