AspDotNetAtoms.com provides daily updates on ASP.NET Tutorials, Programming Resources, .NET Articles, Authors and more.

Categories

Recent Posts

ObjectDataSource in Depth (Part 2) : Manuel Abadia

Friday, September 12 2008

I’m going to add paging support to the example I was using for the ObjectDataSource. First we have to enable it in the GridView setting the AllowPaging property to "true". Also, set the PageSize to something low and insert more rows to the Products table. Now we have to set the EnablePaging property in the ObjectDataSource to let it know that we want to support paging. If we have enabled paging, our select method will need to handle two additional parameters. Their names are configurable using the StartRowIndexParameterName and MaximumRowsParameterName properties. If we don’t set those properties the default values are used: startRowIndex and maximumRow. For the example I used startIndex and maxRows respectively....

Read More:
ObjectDataSource in Depth (Part 2) : Manuel Abadia
Also See:
Perform Database Administration Operations with SQL Server Management Objects : John Papa
Flat File Data Reader :
Performing Batch Deletes from the Database : Scott Mitchell
Learn The Basics Of LINQ : Timothy Khouri
Accessing data using Language Integrated Query (LINQ) in ASP.NET WebPages – Part 1 : Balamurali Balaji

Post your comment

Comment