主题:javascript变量传递到<% %>问题
<script language="javascript">
function changeValue(values)
{
form1.FK_ZHK.value=values;
form1.FK_temp.value=document.form1.FK_GHDW.selectedIndex;
aa=document.form1.FK_GHDW.selectedIndex;
alert(aa);
<%
set rsaa=server.createobject("adodb.recordset")
sqlaa="select HC_GHDW,sum(hc_dj*hc_sl) as new from hc GROUP BY HC_GHDW"
rsaa.open sqlaa,conn,1,1
rsaa.move aa-1
%>
alert("<%=rsaa("new")%>");
}
</script>
这个aa怎么取不到值
function changeValue(values)
{
form1.FK_ZHK.value=values;
form1.FK_temp.value=document.form1.FK_GHDW.selectedIndex;
aa=document.form1.FK_GHDW.selectedIndex;
alert(aa);
<%
set rsaa=server.createobject("adodb.recordset")
sqlaa="select HC_GHDW,sum(hc_dj*hc_sl) as new from hc GROUP BY HC_GHDW"
rsaa.open sqlaa,conn,1,1
rsaa.move aa-1
%>
alert("<%=rsaa("new")%>");
}
</script>
这个aa怎么取不到值