protected void BtnSetP_Click(object sender, EventArgs e) { if (DDLmission.SelectedValue != "") { int Sgrade = Int32.Parse(DDLgrade.SelectedValue.ToString()); int Sclass = Int32.Parse(DDLclass.SelectedValue.ToString()); int Wcid = Int32.Parse(Request.QueryString["Cid"].ToString()); int Wmsort = Int32.Parse(DDLmission.SelectedValue); LearnSite.BLL.Works works = new LearnSite.BLL.Works(); works.WorkSetP(Wcid, Sgrade, Sclass, Wmsort); Labeltest.Text = ""; showscore(); } }