I have two Repeater Control
var list = from i in DA.obm_view_studentLists where i.FranchiseID == FranchiseID && i.ExamDate == DateTime.Parse(this.pallavi.DropDownSelectedValue) select i;
I want to get result in 1 go from database.
this._approvedStudentList.DataSource = list.Select(e => e.ApprovedByOBM == true);
this._pendingStudentList.DataSource = list.Select(e => e.ApprovedByOBM == false);
I have a Label Field (UnPaidTotal) in pendingStudentList Repeater where I want to display Total Fee Pending
I tried but fail
UnPaidTotal = string.Format("{0:c}", list.Select(e => e.ApprovedByOBM == true).Sum(j => j.CourseFee));