点击下拉框跳转

来源:互联网 发布:页游制作软件 编辑:程序博客网 时间:2024/04/25 17:56

下拉框事件  

  protected void DropDownList1_SelectedIndexChanged(object sender, EventArgs e)
    {
        string str1 = "Master/showclass.aspx?classid=" + this.DropDownList1.SelectedValue + "&classname=" + DropDownList1.SelectedItem.Text.ToString().Replace("├", "").Trim();
       Page.RegisterStartupScript("", "<script language=/"javascript/"> window.open('" + str1 + "', target = /"mainframe/");</script>");     //实现页面转向manframe框架中,registerstartupscript应用.
    }

原创粉丝点击