I have a snippit of code to check a session variable if my radio button value is Male or Female. Is there a cleaner way of doing this?
<input name="EmployeeSex" id="Female" type="radio" value="Female"
<% if Session("EmployeeSex") = "Female" then
Response.Write("checked")
end if
%>
> Female
Thanks.
<% if Session(“EmployeeSex”) = “Female” %>checked<% end if %>