private void showWorks() { string midselect = Rblmission.SelectedValue; string cidselect = Rblcourse.SelectedValue; if (!string.IsNullOrEmpty(midselect) && !string.IsNullOrEmpty(cidselect)) { string yearselect = Rblyear.SelectedValue; string gradeselect = Rblgrade.SelectedValue; string classselect = Rblclass.SelectedValue; string termselect = Rblterm.SelectedValue; string displaymodel = Rbldisplay.SelectedValue; LearnSite.BLL.Courses cbll = new LearnSite.BLL.Courses(); string ctitle = cbll.GetTitle(Int32.Parse(cidselect)); LearnSite.BLL.Mission mbll = new LearnSite.BLL.Mission(); string mtitle = mbll.GetMissionTitle(Int32.Parse(midselect)); LabelTitle.Text = "【" + ctitle + "】" + mtitle; LearnSite.BLL.Works wbll = new LearnSite.BLL.Works(); switch (displaymodel) { case "1": DLworks.DataSource = wbll.ShowWclassWorks(Int32.Parse(yearselect), Int32.Parse(gradeselect), Int32.Parse(classselect), Int32.Parse(termselect), Int32.Parse(midselect)); DLworks.DataBind(); divlist.Visible = true; divview.Visible = false; Literal1.Visible = false; break; case "2": DDLstore.DataSource = wbll.ShowWclassWorks(Int32.Parse(yearselect), Int32.Parse(gradeselect), Int32.Parse(classselect), Int32.Parse(termselect), Int32.Parse(midselect)); DDLstore.DataTextField = "Wname"; DDLstore.DataValueField = "Wurl"; DDLstore.DataBind(); divlist.Visible = false; divview.Visible = true; Literal1.Visible = true; if (DDLstore.Items.Count > 0) { DDLstore.SelectedIndex = 0; showflash(); } break; } } else { LabelTitle.Text = "没有作品!"; divlist.Visible = false; divview.Visible = false; Literal1.Visible = false; } }