注册 登录
编程论坛 ASP技术论坛

跳转问题

linyesu 发布于 2007-11-29 16:36, 879 次点击
以下代码实现:选中时跳转到0.asp 并传值<%=rst("cp_hsb_系统编号")%>
问题是,我想让0.asp不在当前页打开,而是其他页面,怎么办?--js不是很熟啊
类似< a target="main" href="0.asp"><%=rst("cp_hsb_公司")%%></a> 是在目标框架main 打开的功能
---------------------------------------------------------------------------------------------------------------------------------
货商 :< select size="1" name="D1"  o nChange="location=this.options[this.selectedIndex].value;">
<% do while not rst.eof %>
< option  value="0.asp?act=<%=rst("cp_hsb_系统编号")%>"><%=rst("cp_hsb_公司")%></option>
<%
rst.movenext
loop %>
</select>
---------------------------------------------------------------------------------------------------------------------------
5 回复
#2
yms1232007-11-29 16:49
:< select size="1" name="D1"  onChange="main.src=this.options[this.selectedIndex].value;">
<% do while not rst.eof %>
< option  value="0.asp?act=<%=rst("cp_hsb_系统编号")%>"><%=rst("cp_hsb_公司")%></option>
<%
rst.movenext
loop %>
</select>
如果这个页面在框架中,就可以直接改变main的src属性。
#3
linyesu2007-11-29 17:03
是在框架中,但改了没有反应
#4
linyesu2007-11-29 17:13
附图
#5
linyesu2007-11-29 17:16
划线的就是框架,就是选中货商时传值到0.asp页,这里将显示他的历史单据
#6
linyesu2007-11-30 08:21
终于把问题解决,原来改这样就可以.看来要找点时间学学js啊
o nChange="window.open(this.options[this.selectedIndex].value,'main');"
1