private void RptBind(string strWhere) { DtCms.BLL.Score bll = new DtCms.BLL.Score(); //获得总条数 this.pcount = bll.GetCount(strWhere); this.rptList.DataSource = bll.GetPageList(this.pagesize, this.page, strWhere, "AddTime desc"); this.rptList.DataBind(); }
protected void Button1_Click(object sender, EventArgs e) { int Quality = Convert.ToInt32(DropDownList1.SelectedValue); int Number = Convert.ToInt32(DropDownList2.SelectedValue); int Atmosphere = Convert.ToInt32(DropDownList3.SelectedValue); int Activities = Convert.ToInt32(DropDownList4.SelectedValue); DtCms.BLL.Societies societies = new DtCms.BLL.Societies(); DtCms.Model.Societies Societiesmodel = new DtCms.Model.Societies(); Societiesmodel = societies.GetModel(Id); DtCms.Model.Score score = new DtCms.Model.Score(); score.Quality = Quality; score.Number = Number; score.Atmosphere = Atmosphere; score.SocietiesName = Societiesmodel.SocietiesName; score.Activities = Activities; DtCms.BLL.Score bll = new DtCms.BLL.Score(); bll.Add(score); Response.Write("<script>alert('艺术团活动评分成功啦!');</script>"); }