navigation
a webmaster learning community
     Home    Register     Search      Help      Login    
FrontPage Alternative
Sponsors

Shopping Cart Software
Ecommerce software integrated into Frontpage, Dreamweaver and Golive templates. No monthly fees and available in ASP and PHP versions.

Website Templates
We also have a wide selection of Dreamweaver, Expression Web and Frontpage templates as well as webmaster tools and CSS layouts.

Frontpage website templates
Creative Website Templates for FrontPage, Dreamweaver, Flash, SwishMax

Free FrontPage Templates

Search Forums
 

Advanced search
Recent Posts

 Todays Posts
 Most Active posts
 Posts since last visit
 My Recent Posts
 Mark posts read

 

Sort DRW results ASC or DESC?

 
View related threads: (in this forum | in all forums)

Logged in as: Guest
Users viewing this topic: none
Printable Version 

All Forums >> Web Development >> ASP and Database >> Sort DRW results ASC or DESC?
Page: [1]
 
AllenD

 

Posts: 258
From: Dayton, OH, USA
Status: offline

 
Sort DRW results ASC or DESC? - 2/4/2002 16:06:41   
I am using this page from Microsoft:

http://office.microsoft.com/assistance/2000/FPDBResult.aspx

On sorting database entries using the DRW, works nicely, but I need the option to sort ASC or DESC. The example above only lets you do it one way or another. Is there a way I can make a hyperlink image with an arrow that goes up or down to allow this? Or can I use a radio button to specify ASC or DESC? Thanks!

 
whitec00

 

Posts: 32
From: Dallas Texas USA
Status: offline

 
RE: Sort DRW results ASC or DESC? - 2/4/2002 18:24:22   
By all means I am not an expert so take this advice for what it might be worth.

I have a similar report that I wanted to be able to sort differently.
At the top of my DRW table, I inserted a row with the same amount of columns as my DRW.
I then placed form buttons in each column and labeled the buttons according to the label in the DRW. I got rid of the DRW labels and used the buttons as my header labels.

I then copied the original DRW and went in to each one and changed the DRW to sort differently on each column. So I had 2 DRWs for each sort method.

I then went into form properties and pointed each sortable column to the appropriate
DRW so that when the button was clicked, it would run that DRW.

If I wanted to sort by name ascending, it would call one DRW that had that sorting.

If I wanted to go back to Name descending, I would click the button and it would call the name descending DRW.

I am quite positive that this is the hard way to do it, but it was all I could come up with at the time that I needed it. Perhaps my round-about method will inspire someone to set me straight......please......

I try to think, but it hurts....

(in reply to AllenD)
Spooky

 

Posts: 26606
Joined: 11/11/1998
From: Middle Earth
Status: offline

 
RE: Sort DRW results ASC or DESC? - 2/4/2002 19:33:10   
You may be able to trick the DRW by adding another parameter

eg "order by column ::SortOrder::"

You would need to pass SortOrder in the same quesrystring with a value of asc or desc

§þððk¥
Database / DRW Q & A
VP-ASP Shopping cart
Spooky Login

(in reply to AllenD)
AllenD

 

Posts: 258
From: Dayton, OH, USA
Status: offline

 
RE: Sort DRW results ASC or DESC? - 2/5/2002 9:54:03   
Perfect. I took out the defaulted ASC in the SQL code. I have 2 images of arrows going up and down, for the ASC image I just added ASC at the end of the image hyperlink and DESC for the down arrow at the end of the image hyperlink, works like a charm! I never realized that ASC or DESC would work like that at the end of a hyperlink! Awesome! Thanks.


(in reply to AllenD)
Page:   [1]

All Forums >> Web Development >> ASP and Database >> Sort DRW results ASC or DESC?
Page: [1]
Jump to: 1





New Messages No New Messages
Hot Topic w/ New Messages Hot Topic w/o New Messages
Locked w/ New Messages Locked w/o New Messages
 Post New Thread
 Reply to Message
 Post New Poll
 Submit Vote
 Delete My Own Post
 Delete My Own Thread
 Rate Posts