Click to See Complete Forum and Search --> : set asp session with javascript


flakfiser
07-16-2003, 11:37 AM
how can i do this exactly

here is part of my code that i have already

<% if session("colorbw") = "color" then %>
<input name="color" type="radio" value="color" onClick="MM_setSession"
checked>Color<br>
<input name="color" type="radio" value="bw" onClick="MM_setSession
>Black &amp; White
<% else %>
<input name="color" type="radio" value="color" onClick="MM_setSession
>Color<br>
<input name="color" type="radio" value="bw" onClick="MM_setSession"
checked>Black &amp; White
<% end if %>

basically, i have a session variable called colorbw, and on this page, i
need the user to check a radio button for either color or black and white
reports. now, submitting the form is not an option, but maybe a postback
will work, or something else. i guess i need to know the javascript
function to do this please. colorbw by default = color.