protected void ExpandShopByLinks_ItemDataBound(object sender, RepeaterItemEventArgs e) { if (e.Item.DataItem != null) { ShopByChoice choice = (ShopByChoice)e.Item.DataItem; HyperLink expandShopByLink = (HyperLink)e.Item.FindControl("ExpandShopByLink"); if (expandShopByLink != null) { expandShopByLink.NavigateUrl = RemoveQueryStringParameter("shopby", choice.Id.ToString()); } } }
protected void FieldChoicesRepeater_ItemCreated(object sender, RepeaterItemEventArgs e) { if (e.Item.DataItem != null) { ShopByChoice choice = (ShopByChoice)e.Item.DataItem; HyperLink narrowByChoiceLink = (HyperLink)e.Item.FindControl("ChoiceLink"); if (narrowByChoiceLink != null) { narrowByChoiceLink.NavigateUrl = ModifyQueryStringParameters("shopby", choice.Id.ToString(), true); } } }