M
mikezx10
I have a page that i need to sort if the user selects the sort radio
btn and then hit the link to reload the page.
I want to pass a 1 in the querystring for sort if the rb is checked
and no querystring if the rb isnt checked.
How can i do this?
also once the rb is selected when i click it a second time it doesnt
unselect
I just inherited a classic asp site and have 1 week experiance so all
the help u can give apreciated
Thanks!
<%@ Language=VBScript %>
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<title></title>
</head>
<body>
<%
dim sort, strSQL
sort=Request.QueryString("sort")
if sort=1 then
strSQL = strSQL & "ORDER BY Date Desc"
else
strSQL = strSQL & "ORDER BY fName"
end if
%>
<div id="SelFra" style="POSITION: absolute; WIDTH: 100%;">
<table width ="100%" border="0" cellspacing="0" align="center" >
<tr bgcolor="#aeaeae" >
<td style="width:200px;">
<input type="radio" name="rbSort" value="0"
<td>
<a href="Default22.asp?sort=1" >Image</a>
</td>
</tr>
</table>
</div>
</body>
</html>
btn and then hit the link to reload the page.
I want to pass a 1 in the querystring for sort if the rb is checked
and no querystring if the rb isnt checked.
How can i do this?
also once the rb is selected when i click it a second time it doesnt
unselect
I just inherited a classic asp site and have 1 week experiance so all
the help u can give apreciated
Thanks!
<%@ Language=VBScript %>
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<title></title>
</head>
<body>
<%
dim sort, strSQL
sort=Request.QueryString("sort")
if sort=1 then
strSQL = strSQL & "ORDER BY Date Desc"
else
strSQL = strSQL & "ORDER BY fName"
end if
%>
<div id="SelFra" style="POSITION: absolute; WIDTH: 100%;">
<table width ="100%" border="0" cellspacing="0" align="center" >
<tr bgcolor="#aeaeae" >
<td style="width:200px;">
<input type="radio" name="rbSort" value="0"
</td> Sort by Account Size
<td>
<a href="Default22.asp?sort=1" >Image</a>
</td>
</tr>
</table>
</div>
</body>
</html>