首页 > 其他 > 详细

二级链动

时间:2014-07-19 17:34:52      阅读:369      评论:0      收藏:0      [点我收藏+]

     protected void btnSend_Click(object sender, EventArgs e)
        {

            if (this.ddlSendName.SelectedValue == "-1")
            {
                Response.Write("<script language=‘javascript‘>alert(‘发送方不能为空!‘);</script>");
                return;
            }
        }

        protected void ddlSendType_SelectedIndexChanged(object sender, EventArgs e)
        {
            if (this.ddlSendType.SelectedValue == "1")
            {
                ListItem li = new ListItem();
                li.Text = "无";
                li.Value = "-1";
                this.ddlSendName.Items.Clear();
                this.ddlSendName.Items.Add(li);
            }else
                if (this.ddlSendType.SelectedValue == "2")
                {
                    ListItem li = new ListItem();
                    li.Text = "yy";
                    li.Value = "1";
                    this.ddlSendName.Items.Clear();
                    this.ddlSendName.Items.Add(li);
                }
                else
                {
                    ListItem li = new ListItem();
                    li.Text = "yyyy";
                    li.Value = "2";
                    this.ddlSendName.Items.Clear();
                    this.ddlSendName.Items.Add(li);
                   
                }
        }

二级链动,布布扣,bubuko.com

二级链动

原文:http://www.cnblogs.com/zouxuechang/p/3853749.html

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!