Cosi' mi e' stato risolto il problema:
Sono molto contento![]()
<%@ Language=VBScript %>
<%
Option Explicit
Dim objConn, objRS, strSQL, year
year = Request("year")
%>
<HTML>
<HEAD>
<script type="text/javascript">
window.onload=function(){
for (var i=0; i<document.forms[0].list_year.options.length; i++){
if (document.forms[0].list_year.options[i].value == "<%=year%>") {
document.forms[0].list_year.options[i].selected = true;
}
}
}
</script>
</HEAD>
<BODY>
<form>
<select name="list_year" onChange="this.options[this.selectedIndex].value=this.value;">
<option value="2007" selected>2007</option>
<option value="2008">2008</option>
<option value="2009">2009</option>
<option value="2010">2010</option>
</select>
<input type="button" name="go_b" value="Search" onClick="window.open('response.asp?year='+this.for m.list_year.options[this.form.list_year.selectedIndex].value,'','')" />
</form>
</BODY>
</HTML>