ASP 101 - Active Server Pages 101 - Web05
The Place ASP Developers Go!

Please visit our partners


Windows Technology Windows Technology
15 Seconds
4GuysFromRolla.com
ASP 101
ASP Wire
VB Forums
VB Wire
WinDrivers.com
internet.commerce internet.commerce
Partners & Affiliates














ASP 101 is an
internet.com site
ASP 101 is an internet.com site
IT
Developer
Internet News
Small Business
Personal Technology

Search internet.com
Advertise
Corporate Info
Newsletters
Tech Jobs
E-mail Offers

ASP 101 News Flash ASP 101 News Flash





ASP.NET version of "Database Sort (with Arrows)"


As I mentioned in our original Database Sort ASP.NET sample, this code doesn't really take advantage of all the bells and whistles of the DataGrid, but it does provide a quick and easy way to handle sorting. This version doesn't have the (+/-) sorting links that the old one did. Instead, you simply click on a field header to sort by that field. Once the table is sorted by a field, simply click the header again to reverse the order.

I used the less obnoxious arrows this time around. I've included the images files for both the ones I used and the the traditional obnoxious red ones in the zip file so you use whichever you prefer.

Here's a zip file of the code (2.1 KB).

Play with the running version.

View the live source code.


Back to the "Database Sort (with Arrows)" sample


Samples

Home |  News |  Samples |  Articles |  Lessons |  Resources |  Forum |  Links |  Search |  Feedback

Internet.com
The Network for Technology Professionals

Search:

About Internet.com

Legal Notices, Licensing, Permissions, Privacy Policy.
Advertise | Newsletters | E-mail Offers