I kind of understand. But I need your help in getting it going, if you will, please.
Say we use Ad Number, which is "AdNumber" in the table. The table is called "projects". Would that part of the code be:
if sort_order = "adn" then
select * from projects order_by AdNumber"
else if sort_order = ... (what here)
End If
Also I need help on the querysting with URL.
Thanks.
Main Topics
Browse All Topics





by: mayankagarwalPosted on 2009-11-08 at 09:01:56ID: 25770994
To do this, you have to make the column headin hyperlink.
On clicking the hyperlink you have to agian call the same page with the sorted data.
Suppose the user click on "Ad Number", then while calling the asp page again have a querystring with url which have a variable say sort_order = adn
in the starting of the code define a variable sort_order
then have a if else loop like
if sort_order = "adn" then
select * from table_name order_by ad_number"
else if sort_order = ...
.....
....
....
end if
end if
..
...
...
...
...