Gazing into my crystal ball I observed "Ing. Branislav Gerzo"
<> writing in
news::
> Jeff Cochran [JC], on Wednesday, June 29, 2005 at 11:09 (GMT) typed
> the following:
>
> JC> Are you asking how to best change a query string and resubmit to a
> new JC> page, which will create a new query?
>
> this one, sorry for my english.
>
http://localhost/store/CDfilter.asp?...lngid=3&osid=7
&ordertype=desc&orderby=release_date&PerPage=50&Pa geNum=2
If I were you, I would try to use numerical values for the ordertype and
orderby values, just as the catid, lngid, and osid are. Then build your
sql statement accordingly, eg:
<% select case request.querystring("orderby")
case "1"
sort = " ORDER BY release_date "
case "2"
sort = " ORDER BY ordertype"
case else
sort = " ORDER BY id"
end select
sql = " SELECT values FROM table WHERE clause " & sort
'...
%>
<table summary="CD Filter">
<caption>CD Filter</caption>
<thead>
<th><a href="cdfilter.asp?catid=<%=catid%>&lngid=<%=l ngid%>&osid=
<%=osid%>&ordertype=<%=ordertype%>&orderby =1&perpage=<%
=perpage%>&pagenum=<%=pagenum%>">Release Date</a></th>
....
</thead>
<tbody>
<% 'records %>
</tbody>
</table>
--
Adrienne Boswell
http://www.cavalcade-of-coding.info
Please respond to the group so others can share