hyefive
04-05-2004, 07:22 PM
Hi,
I have an .asp that uses the (much scaled-down) following pretext to determine when to apply a "checked" value to a couple radio buttons:
<%
PROP_TYPE = "RES"
If Request.QueryString("PROP_TYPE") <> "" Then
PROP_TYPE = Request.QueryString("PROP_TYPE")
End If
%>
<html>
<table...><tr>
<td>Property Type*:</td>
<td><input type="RADIO" name="PROP_TYPE" value="RES"<% If PROP_TYPE = "RES" Then Response.Write " checked" End If %>>Residential
<br>
<input type="RADIO" name="PROP_TYPE" value="INC"<% If PROP_TYPE = "INC" Then Response.Write " checked" End If %>>Multi-Residential Income</td>
</tr><.../table>
</html>
This works in IE, with the appropriate button being checked however the user arrives to the page, but not in NETSCAPE (7.1, at least). The problem in Netscape is not upon the first time they arrive (works fine then), but on subsequent arrivals via the BACK button- at which time neither of the two radio buttons are checked.
Funny thing is, the page is evaluating the PROP_TYPE = "RES" directive, because VIEW SOURCE shows "checked" in the correct radio box, and later on down the page it's succesful with an If-Then that displays material accordingly.
Any ideas on what's happening here?
Greatly appreciated,
m
I have an .asp that uses the (much scaled-down) following pretext to determine when to apply a "checked" value to a couple radio buttons:
<%
PROP_TYPE = "RES"
If Request.QueryString("PROP_TYPE") <> "" Then
PROP_TYPE = Request.QueryString("PROP_TYPE")
End If
%>
<html>
<table...><tr>
<td>Property Type*:</td>
<td><input type="RADIO" name="PROP_TYPE" value="RES"<% If PROP_TYPE = "RES" Then Response.Write " checked" End If %>>Residential
<br>
<input type="RADIO" name="PROP_TYPE" value="INC"<% If PROP_TYPE = "INC" Then Response.Write " checked" End If %>>Multi-Residential Income</td>
</tr><.../table>
</html>
This works in IE, with the appropriate button being checked however the user arrives to the page, but not in NETSCAPE (7.1, at least). The problem in Netscape is not upon the first time they arrive (works fine then), but on subsequent arrivals via the BACK button- at which time neither of the two radio buttons are checked.
Funny thing is, the page is evaluating the PROP_TYPE = "RES" directive, because VIEW SOURCE shows "checked" in the correct radio box, and later on down the page it's succesful with an If-Then that displays material accordingly.
Any ideas on what's happening here?
Greatly appreciated,
m