I have two Repeater Control options
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 the result in 1 go from the 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 the pendingStudentList repeater where I want to display the final board pending
I tried but failed
UnPaidTotal = string.Format("{0:c}", list.Select(e => e.ApprovedByOBM == true).Sum(j => j.CourseFee));
Rate listto get all the results in one shot - just enclose from i in… select iin parentheses and add .ToList()to the end.
list
from i in… select i
.ToList()
When installing DataSourcereplace list.Select(…onlist.Where(…
DataSource
list.Select(…
list.Where(…
The same thing when receiving an unpaid amount - use Whereinstead Select.
Where
Select
, . , , , .
Select , Where . manufacturerList = carCollection.Select(car => car.Manufacturer);. , .
manufacturerList = carCollection.Select(car => car.Manufacturer);
, , , . , , IEnumerable/IQueryable, , . , .
, , IEnumerable , , . , .
- , , - . - , html , html . , .
Source: https://habr.com/ru/post/1763377/More articles:CSS - Using background anchor - cssRegardless of whether Visual Studio 2010 makes an unlimited modeling project reverse engineering? - visual-studio-2010I'm on the iPhone. - iphonejQuery Сохранить значения флажков в div - javascriptASP.NET MVC 2 EditModel включает идентификатор? Идентификатор безопасности не подделывается - security.Net plugin framework that allows you to determine the order of plugins (including encoded plugins) - pluginsiphone hides UISearchDisplayController results? - objective-cСуществующая системная библиотека С++ * nix? - c++SQLAlchemy context-sensitive function for creating a composite value when inserting and updating - pythonCSS Drop Down Menu - Сохраняет состояние HOVER при нажатии - jqueryAll Articles