private void LoadVideo() { string strHTML = string.Empty, firstItem = "", otherItems = string.Empty; List <Media_Files> items = MediaFiles.GetActiveListByTypeIdFixedNum(4, 5); if (items.Count > 0) { //items.Select((item, index) => index == 0 ? GetResultFromFirstItem(item) : GetResultFromOtherItem(items)); foreach (var item in items) { if (items.First() == item) { firstItem = GetResultFromFirstItem(item); } foreach (var _item in items.Skip(1)) { otherItems += GetResultFromOtherItem(_item); } } strHTML = "<div id=\"playvideoitem\">" + firstItem + "</div>" + "<div class=\"others\">" + otherItems + "</div>"; } else { strHTML = "Không tìm thấy dữ liệu"; } lblVideoList.Text = strHTML; }