Hi, Anyone know if you can have a conditional intpage count.
I have a page with a category1D.
On that page I have a button for the visitor to diplay the results on the fly sort=asc.
Thing is the form action is set to only the non sorted results. What I need is that if the visitor has sorted the results that they are passed to the next pages as sorted and when not that they arnt.
Think I need a if clause but not sure, something like
This is what I have
Any help would be greatly appreciated.
Thanks
Richard
I have a page with a category1D.
On that page I have a button for the visitor to diplay the results on the fly sort=asc.
Thing is the form action is set to only the non sorted results. What I need is that if the visitor has sorted the results that they are passed to the next pages as sorted and when not that they arnt.
Think I need a if clause but not sure, something like
Code:
<% If rsCard("lngCategoryID")="<%=lngCategoryID%>&sort=ASC" Then %> <form action="directorym.asp?CategoryID=<%=lngCategoryID%>&sort=ASC" method="post"> <% Else %> <form action="directorym.asp?CategoryID=<%=lngCategoryID%>" method="post"> <% End If %>
This is what I have
Code:
href="/directorym.asp?CategoryID=<%=lngCategoryID%>&sort=ASC"
Code:
<%If intpagecount > 1 Then %> <form action="directorym.asp?CategoryID=<%=lngCategoryID%>" method="post">
Thanks
Richard
Comment