public static string showAllChunks(int fileId) { utils.DbUtils dbUtil = new utils.DbUtils(); List <string> blackList = (List <string>)HttpContext.Current.Session["blackList"]; List <int> ids = dbUtil.getChunksFile(fileId); string html = ""; html += "<tr><th>Chunk Id</th><th> Peer</th><th>Choose</th></tr>"; for (int i = 0; i < ids.Count(); i++) { System.Diagnostics.Debug.Write(ids[i] + "\n"); List <string> peers = dbUtil.getPeersChunk(ids[i]); for (int j = 0; j < peers.Count(); j++) { if (!blackList.Contains(peers[j])) { html += "<tr><td>" + ids[i] + "</td><td>" + peers[j] + "</td><td><input type=\"checkbox\" onclick=\"addPeer('" + ids[i] + "','" + peers[j] + "')\"></td>" + "</tr>"; } } } return(html); }