我有两个 Repeater 控件
var list = from i in DA.obm_view_studentLists where i.FranchiseID == FranchiseID && i.ExamDate == DateTime.Parse(this.pallavi.DropDownSelectedValue) select i;
我希望能够从数据库中一次性获取结果。
this._approvedStudentList.DataSource = list.Select(e => e.ApprovedByOBM == true);
this._pendingStudentList.DataSource = list.Select(e => e.ApprovedByOBM == false);
我有一个Label字段(UnPaidTotal)在pendingStudentList重复器中,我想显示总费用待支付
我尝试过但失败了
UnPaidTotal = string.Format("{0:c}", list.Select(e => e.ApprovedByOBM == true).Sum(j => j.CourseFee));