X.aspx文件中有如下列表框:
<asp:DropDownList id="DropDownList1" runat="server" AutoPostBack="True">
<asp:ListItem Value="http://www.xx.com">导航1</asp:ListItem>
<asp:ListItem Value="http://www.yy.com">导航2</asp:ListItem>
</asp:DropDownList>
请问如何在其后台代码文件X.aspx.vb中实现选择下拉列表项,则在新窗口中打开指定的网址?
<asp:DropDownList id="DropDownList1" runat="server" AutoPostBack="True">
<asp:ListItem Value="http://www.xx.com">导航1</asp:ListItem>
<asp:ListItem Value="http://www.yy.com">导航2</asp:ListItem>
</asp:DropDownList>
请问如何在其后台代码文件X.aspx.vb中实现选择下拉列表项,则在新窗口中打开指定的网址?
解决方案 »
- 后台登录,会话保存不使用session 怎么使用cookies?请大家具体说一下?
- 200分求助!一个js脚本问题。在线等,调试通过就给分。
- 请教一个打印页面问题?
- 100求解---------套用母版后使用时间控件的问题。
- 真的很急,请在家帮我看一下
- 怎样给treeview控件加背景图片或者设置透明背景?
- 我有个关于ActiveReports 问题向大家请教!!
- 关于datalist中服务器控件数据绑定的问题
- mvc3 如何让所有链接后自动添加斜杠“/”
- 求助wcf错误
- 请问怎么在xslt里用滚动条?类似与html里DIV
- 符合查询时候出错,“GetStudentByCondition”方法没有采用“8”个参数的重载
{
Response.Redirect(this.DropDownList1.SelectedValue.ToString());
}
Response.Write("<script>window.open('"+DropDownList1.SelectedValue+"')</script>");
Response.Redirect(DropDownList1.SelectedValue);你的把X.aspx页form的target属性设置成_blank.
....this.DropDownList1.SelectedIndex = 1;
respons.write("<sript>window.open('aaa.aspx')</script>")
的方式都是在弹出窗口中打开呀!