Wrox Programmer Forums
|
BOOK: Beginning ASP.NET Databases Also see the forum ASP Databases for more general discussions of ASP database issues not directly related to these books.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the BOOK: Beginning ASP.NET Databases section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old October 29th, 2005, 03:04 PM
Authorized User
 
Join Date: Jun 2004
Posts: 18
Thanks: 0
Thanked 0 Times in 0 Posts
Default Chapter 5 Efficiency?

This is probably the kind of question I would ask if I were taking this in a classroom. In DataGrid_sorting.aspx and DataGrid_paging.aspx, it seems awfully inefficient to have to requery the db and re-create the data adapter and the dataset each time the user clicks something on the page. Without having thought it all the way through at this point, it just seems on the face of it that it ought to be possible to make the connection object, the data adapter, and the dataset public objects that persist, so that the click event simply sets a new sort expression or new page index, and then re-binds the data. It seems to me that I've seen examples of this in other systems.

Is there a particular reason why this wouldn't work in ASP.NET?

Or is this topic addressed in more detail in subsequent chapters?





Similar Threads
Thread Thread Starter Forum Replies Last Post
Efficiency Kev_Akas PHP Databases 1 May 13th, 2008 09:24 AM
Code Efficiency rsm42 ASP.NET 1.0 and 1.1 Basics 12 August 8th, 2007 11:36 AM
code efficiency sxstat90 SQL Language 1 March 8th, 2005 04:42 PM
efficiency qn - writing and saving xml file ak Classic ASP XML 1 March 2nd, 2004 05:26 PM
Function Efficiency Ben Access VBA 3 November 20th, 2003 04:08 PM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.