选中一项! 如何弹出一个新的连接页面!

解决方案 »

  1.   


     protected void DropDownList1_SelectedIndexChanged(object sender, EventArgs e)
        {
          if(this.DropDownList1.SelectedItem.Text=="")
           {
           Response.Redirect("");
            }    }
      

  2.   

    用前台 jsfunction jumpto()
    {
        var drop = document.getElemntById('dropdownlist1');
        var url = drop.value;
        
        window.open(url);
    }<dropdownlist id = '' ...  onchange = "jumpto()">
      <listitem value="http://www.sina.com.cn">新浪</listitem>
      <listitem value="http://www.163.com.cn">网易</listitem>
      <listitem value="http://www.csdn.com.cn">CSDN</listitem>
    </dropdownlist>
      

  3.   


    第一种是服务端方法:
    先把AutoPostBack属性设置为True
    然后:第二种: 客户端方法(JS实现)
      

  4.   

    你要想保留以前的页面,只要设置一下target就可以了。