每次提交后将取得的用户选择的值保存在SESSION中:
下拉列表改成下面这样:
复制内容到剪贴板 程序代码
Session("Nclassid") = Trim(Request.Form("Nclassid"))
下拉列表改成下面这样:
复制内容到剪贴板 程序代码
<select name="Nclassid" onChange="changelocation2(document.yuziform.Nclassid.options[document.yuziform.Nclassid.selectedIndex].value)">
<%
if isNull(Session("Nclassid")) or isEmpty(Session("Nclassid")) then Session("Nclassid") = ""
rs.open "select * from Tbl_Products_nclass " ,conn,1,1
dim selNclassId,strSelected
<%
if isNull(Session("Nclassid")) or isEmpty(Session("Nclassid")) then Session("Nclassid") = ""
rs.open "select * from Tbl_Products_nclass " ,conn,1,1
dim selNclassId,strSelected