Wrox Programmer Forums
|
BOOK: ASP.NET 2.0 Website Programming Problem Design Solution ISBN: 978-0-7645-8464-0
This is the forum to discuss the Wrox book ASP.NET 2.0 Website Programming: Problem - Design - Solution by Marco Bellinaso; ISBN: 9780764584640
Welcome to the p2p.wrox.com Forums.

You are currently viewing the BOOK: ASP.NET 2.0 Website Programming Problem Design Solution ISBN: 978-0-7645-8464-0 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 July 28th, 2008, 08:58 AM
Imar's Avatar
Wrox Author
 
Join Date: Jun 2003
Posts: 17,089
Thanks: 80
Thanked 1,576 Times in 1,552 Posts
Default

Yes, we're saying the same thing. The confusion started here:
Quote:
quote:I just don't even begin to understand the point Imar was trying to make here:
    The problem is of course, that if you page in the database,
    you only get back the relevant records for the requested page.
    If you then try to sort, you only sort the current page.
    This is what confuses most people at first when they page, not sort in the database. Your statement here seemed to indicate you got confused by that as well.

And yes, I agree that full sorting and paging client side would work perfectly, given that indeed the result set is "small enough"....

Imar


---------------------------------------
Imar Spaanjaars
http://Imar.Spaanjaars.Com
Everyone is unique, except for me.
Author of Beginning ASP.NET 3.5 : in C# and VB, ASP.NET 2.0 Instant Results and Dreamweaver MX 2004
Want to be my colleague? Then check out this post.
 
Old July 28th, 2008, 04:02 PM
Lee Dumond's Avatar
Wrox Author
 
Join Date: Jan 2008
Posts: 923
Thanks: 12
Thanked 166 Times in 162 Posts
Default

Well Pedant, that is one way to "parameterize" an ORDERBY clause. You say tomato, I say tomahto kind of a thing (and not really to the point of the original post. :))

The point we're all making is very simple: sort and page in the same place -- either both on the server, or both on the client. Don't page on the server and sort on the client or vice versa.

We cool?

 
Old July 28th, 2008, 04:24 PM
Friend of Wrox
 
Join Date: Jun 2008
Posts: 1,649
Thanks: 3
Thanked 141 Times in 140 Posts
Default

> You say tomato, I say tomahto kind of a thing

Or maybe I was saying "love apple." <grin style="sheepish"/>

Yeah, the "crowd" I hang out with uses the term "dynamic sql" to mean using
     EXECUTE (@sqlAsString)
within a SP. Sorry!

And, yeah, we have strayed just a tad, haven't we. I wonder if poor "sandyl" is so intimidated that he/she will never come back.





Similar Threads
Thread Thread Starter Forum Replies Last Post
Custom Sorting for Comments tectrix BOOK: ASP.NET 2.0 Website Programming Problem Design Solution ISBN: 978-0-7645-8464-0 2 February 14th, 2008 07:07 AM
custom paging and sorting? asptwodev BOOK: ASP.NET 2.0 Instant Results ISBN: 978-0-471-74951-6 2 September 22nd, 2007 02:06 AM
Implementing Custom Assemblys dillig BOOK: Professional SQL Server Reporting Services ISBN: 0-7645-6878-7 1 September 8th, 2004 07:56 AM





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