Wrox Programmer Forums
|
ASP.NET 3.5 Basics If you are new to ASP or ASP.NET programming with version 3.5, this is the forum to begin asking questions. Please also see the Visual Web Developer 2008 forum.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the ASP.NET 3.5 Basics 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 March 17th, 2009, 06:36 PM
bex bex is offline
Friend of Wrox
 
Join Date: Aug 2008
Posts: 154
Thanks: 7
Thanked 1 Time in 1 Post
Default Sorting sql data

Hi there

i need to sort data coming from sql 2005,

Code:
<asp:SqlDataSourceID="SqlDataSource1"runat="server"ConnectionString="<%$ ConnectionStrings:ConnectionString %>
"SelectCommand="SELECT [News] FROM [News_table]">
</asp:SqlDataSource>
what will be the best control to use?
i have 2 div tags . div1 and div2
div1 has 5 links:News1, News2, News3, News4, News5.

div2 has a data bind control,Lets say GridView

once the data is displayed a need to be able to sort it by clicking one of the links in the div1,
i know that grid view has sort property that is not what i need the sorting needs to be on the left of the grid,

is that possible?
if not what is the closest match

very similar to members list area in this forum, u have sorting by name, posts, then paging and on top sorting by letters.

thanks
__________________
bx

Last edited by bex; March 18th, 2009 at 03:41 AM..





Similar Threads
Thread Thread Starter Forum Replies Last Post
Data sorting dilipv .NET Framework 2.0 1 March 10th, 2008 09:19 AM
DataGridView - Sorting Data pencilneck Visual Studio 2005 0 October 23rd, 2007 04:35 PM
sorting retrieved data don baroo Classic ASP Basics 2 November 23rd, 2004 08:31 AM
Sorting Data seidici Excel VBA 2 May 21st, 2004 02:24 PM
Sorting in Data Grid matt.fields ASP.NET 1.0 and 1.1 Basics 0 October 21st, 2003 12:39 PM





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