if (e.Item.ItemType == ListItemType.Item || e.Item.ItemType == ListItemType.AlternatingItem) { DataRowView a = (DataRowView)e.Item.DataItem; string cid = a["id"].ToString(); string id = a["Parent_id"].ToString(); string url = a["link_url"].ToString(); HtmlAnchor leftLink = (HtmlAnchor)e.Item.FindControl("find_a"); leftLink.Attributes["href"] = ClientUtility.Root + "/proscenium/" + url + "?id=" + id + "&cid=" + cid; string r_cid = null; if (Request.FilePath.Contains("xk_about.aspx")) { r_cid = Request["cid"] == null ? "8" : Request["cid"]; } else { r_cid = Request["cid"] == null ? "33" : Request["cid"]; } if (cid == r_cid) { leftLink.Attributes["class"] = "activeHover"; } }