首页 > 代码库 > 二级链动
二级链动
protected void btnSend_Click(object sender, EventArgs e)
{
if (this.ddlSendName.SelectedValue =http://www.mamicode.com/="-1")
{
Response.Write("<script language=‘javascript‘>alert(‘发送方不能为空!‘);</script>");
return;
}
}
protected void ddlSendType_SelectedIndexChanged(object sender, EventArgs e)
{
if (this.ddlSendType.SelectedValue =http://www.mamicode.com/="1")
{
ListItem li = new ListItem();
li.Text = "无";
li.Value = "http://www.mamicode.com/-1";
this.ddlSendName.Items.Clear();
this.ddlSendName.Items.Add(li);
}else
if (this.ddlSendType.SelectedValue =http://www.mamicode.com/="2")
{
ListItem li = new ListItem();
li.Text = "yy";
li.Value = "http://www.mamicode.com/1";
this.ddlSendName.Items.Clear();
this.ddlSendName.Items.Add(li);
}
else
{
ListItem li = new ListItem();
li.Text = "yyyy";
li.Value = "http://www.mamicode.com/2";
this.ddlSendName.Items.Clear();
this.ddlSendName.Items.Add(li);
}
}