Right.. sounds like a mix of JavaScript and ASP. Your combo box needs some JavaScript to submit a form to a page that will set the session variables. For hidden stuff like this, I use an IFrame with height and width set to 0. Then target that frame for your submission of the form. The page loaded in that frame will have some code that takes the values submitted, and stores them in the session.
The code below is free-form.. not tested.. more for you to just get an idea.. rok, does this seem adequate, or did I miss anything important?
Code:
<script language="JavaScript">
function setSessionVars(){
document.setSessionVars.sessionVar1.value = document.comboBoxes.cb1.selectedIndex;
document.setSessionVars.sessionVar2.value = document.comboBoxes.cb2.selectedIndex;
docu,emt.setSessionVars.sumbit();
}
</script>
<form name="setSessionVars" target="hiddenFrame" method="post" action="setSessionVars.asp">
<input type="hidden" name="sessionVar1" value="">
<input type="hidden" name="sessionVar1" value="">
</form>
<form name="comboBoxes" method="post" action="someotherpage.asp">
<select name="cb1" onChange="setSessionVars();">
<option <%If Session("CBVar1") = 0 Then Response.Write "SELECTED" End If %>>Value 1</option>
<option <%If Session("CBVar1") = 1 Then Response.Write "SELECTED" End If %>>Value 2</option>
<option <%If Session("CBVar1") = 2 Then Response.Write "SELECTED" End If %>>Value 3</option>
</select>
<select name="cb2" onChange="setSessionVars();">
<option <%If Session("CBVar2") = 0 Then Response.Write "SELECTED" End If %>>Value 1</option>
<option <%If Session("CBVar2") = 1 Then Response.Write "SELECTED" End If %>>Value 2</option>
<option <%If Session("CBVar2") = 2 Then Response.Write "SELECTED" End If %>>Value 3</option>
</select>
</form>
<iframe name="hiddenFrame" height="0" width="0">
Then this could be the code for setSessionVars.asp
Code:
<%
If Request.Form("cb1") <> "" Then
Session("CBVar1") = Request.Form("cb1")
End If
If Request.Form("cb2") <> "" Then
Session("CBVar2") = Request.Form("cb1")
End If
%>
damn you rok.. beat me to it!