protected void RecipeManagementUserControl_RepeaterItemClick(object sender, CommandEventArgs e) { if (e.CommandName == WellKnownCommandNames.Edit.ToString()) { int foodTypeID = 0; if (!string.IsNullOrEmpty(e.CommandArgument.ToString())) { int.TryParse(e.CommandArgument.ToString(), out foodTypeID); this.FoodTypeID = foodTypeID; this.FoodType = ((LinkButton)(((RepeaterCommandEventArgs)(e)).CommandSource)).Text; LinkButton linkButton = (LinkButton)FindControl("foodTypeActionLinkButton"); FoodTypeResponseDto selectedFoodTypes = this.FoodTypes.FirstOrDefault(r => r.FoodTypeId == foodTypeID); this.FoodType = selectedFoodTypes.Name; this.FoodTypeIndexID = selectedFoodTypes.IndexID; this.GetMultipleFoodData(); } } }
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)