Title: Visual Studio ASP .Net - SortingAndPaging
Duration: 15:10 min
Description: In my previous video I started showing how the final display will look like when sorting a ListView. In this video, we will build that together. We start by adding the necessary CSS styles and the sqlDataSource. Then, we build the LayoutTemplate based on an HTML table. The LayoutTemplate will contain the code needed to sort the records. After that, we create our ItemTemplate and AlternatingItemTemplate. In addition to the sorting, we will demonstrate here how we can page through the data.
Methodology: Sorting and Paging in ASP.NET controls.
Technologies: ASP.NET 3.5
Examples constructed: We create a ListView of customers. We add a LayoutTemplate to the ListView with a table and LinkButtons with CommandName 'Sort'. Finally we add a DataPager to be able to page through the records in the ListView.
Key words: ListView, CSS, SqlDataSource, ItemTemplate, AlternatingItemTemplate, LayoutTemplate, CommandName, Eval.