不知道图片能不能看清我贴个源码在下面
public void Major_SelectedIndexChanged(object sender, EventArgs e)
{
string major = "";//就是这个major
if (Major.SelectedItem.Value == "3")
{
panel1.Visible = true;
major = major + major1.Text;
}
else
{
panel1.Visible = false;
major = major + Major.SelectedItem.Text;
}
}
protected void Button_Click(object sender, EventArgs e)
{
//在这里面使用major
}
相关分类