protected void btnShareSelectedOpportunitiesClients_Click(object sender, EventArgs e) { if (ddlExecutive.SelectedIndex > 0) { bizUser.enGageUser user = (bizUser.enGageUser)Session["USER"]; var AssignedToExcutiveId = ddlExecutive.SelectedValue; // get all selected opportunitiesids var selectedOpprtunityIDs = selectedOpportunitiesIDs.Value.Split('#').Where(x => x.Trim() != "").Distinct(); var opportunitiesList = string.Join(",", selectedOpprtunityIDs.ToArray()); // assign the Oppprtunities bizOpportunity biz = new bizOpportunity(); biz.ShareQueueOppportunitiesWithExcutive(user.UserName, AssignedToExcutiveId, opportunitiesList); // refresh the grids PopulateFollowUps(); } else { this.ucMessanger2.ProcessMessage("Please Select an Executive", Enums.enMsgType.Err, "", null, true); // refresh the grids PopulateFollowUps(); } }