protected void rptCategory_ItemDataBound(object sender, RepeaterItemEventArgs e) { if (e.Item.ItemIndex < 0) { return; } DataRowView curData = (DataRowView)e.Item.DataItem; HyperLink lnkCatName = (HyperLink)e.Item.FindControl("lnkCatName"); if (lang == 1) { lnkCatName.Text = curData["NameUnicode"].ToString(); } else { lnkCatName.Text = curData["Name"].ToString(); } switch (tab.ToLower()) { case "bxh": lnkCatName.NavigateUrl = UrlProcess.GetCompetitionBXHUrl(lang.ToString(), width, curData["W_CompetitionID"].ToString()); break; case "ltd": lnkCatName.NavigateUrl = UrlProcess.GetCompetitionLTDUrl(lang.ToString(), width, curData["W_CompetitionID"].ToString()); break; case "kqtd": lnkCatName.NavigateUrl = UrlProcess.GetCompetitionKQTDUrl(lang.ToString(), width, curData["W_CompetitionID"].ToString()); break; case "tkdb": DataTable dtTKDB = ThethaoController.ThongKeDacBiet(ConvertUtility.ToString(curData["W_CompetitionID"])); lnkCatName.NavigateUrl = ""; if (dtTKDB.Rows.Count > 0) { if (dtTKDB.Rows[0]["WapContent"].ToString().Trim().Length > 0) { lnkCatName.NavigateUrl = UrlProcess.GetCompetitionTKDBUrl(lang.ToString(), width, curData["W_CompetitionID"].ToString()); } } break; } }