protected void Page_Load(object sender, EventArgs e) { if (Request.QueryString["torrent"] == null || Request.QueryString["torrent"].Length != 40) { Msg.Text = "Torrent not found"; return; } try { DataTable peersDataTable = createPeersDataTable(); string sha = Request.QueryString["torrent"]; handlePeers(sha, peersDataTable); PeerList.DataSource = peersDataTable; PeerList.DataBind(); } catch (Exception ex) { Msg.Text = String.Format("Error: {0}", ex.Message); } }