菜鸟级的问题,只要学ASP.net的都会,进来看看~ <select onchange="window.location=this.options[this.selectedIndex].text"><option>http://sina.com 解决方案 » 免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货 这个用javascript 就可以了: <select onchange='window.open( this.value,"newwin","" )' > <option value="http://www.sohu.com" >sohu</option> <option value="http://www.sina.com.cn" >sina</option> </select>///////////////////////////////////////////////一定要ASP.NET C# 也可以:<script runat="server"> void ddl_SelectedIndexChanged(object sender,EventArgs e){ Response.Redirect( ddl.SelectedItem.Value ); }</script> <asp:DropDownList runat="server" id="ddl" OnSelectedIndexChanged="ddl_SelectedIndexChanged"> <asp:ListItem runat="server" Value="www.sohu.com"/> <asp:ListItem runat="server" Value="www.sina.com.cn"/> </asp:DropDownList> 同意2楼的做法。绑定DropDownList1,其中的每个item的Text(用于显示),Value(用于传参数)之后在它的SelectedIndexChanged事件中写: Response.Redirect(DropDownList1.SelectedItem.Value); 给别人介绍网站的架构,具体要介绍一些什么东西? 怎样将保存汉字到文本文件啊 关于一个SQL语句.. 2.0里 web项目没有命名空间了,自定义控件如何引用啊? 急急急急急急急急急急急急急,請進! 在选择多项记录时有没有像ListBox那样鼠标一点然后以拖拉就全部选中的控件! asp免费空间!!! 如何在VS。NET使用框架? 关于一个不知道跟页面缓冲有没有关系的问题 使用LoadRunner测试.Net平台C/S程序时提示YYSFMS.UI已停止工作,但是直接运行该可执行文件时运行正常 为什么使用oracleclient组件出现乱字符 为什么这个名字空间总出错?system.data.ado
<select onchange='window.open( this.value,"newwin","" )' >
<option value="http://www.sohu.com" >sohu</option>
<option value="http://www.sina.com.cn" >sina</option>
</select>///////////////////////////////////////////////一定要ASP.NET C# 也可以:
<script runat="server">
void ddl_SelectedIndexChanged(object sender,EventArgs e){
Response.Redirect( ddl.SelectedItem.Value ); }
</script>
<asp:DropDownList runat="server" id="ddl" OnSelectedIndexChanged="ddl_SelectedIndexChanged">
<asp:ListItem runat="server" Value="www.sohu.com"/>
<asp:ListItem runat="server" Value="www.sina.com.cn"/>
</asp:DropDownList>
绑定DropDownList1,其中的每个item的Text(用于显示),Value(用于传参数)
之后在它的SelectedIndexChanged事件中写:
Response.Redirect(DropDownList1.SelectedItem.Value);