public void btnNon_click(Object sender, EventArgs e) { HtmlButton btn = (HtmlButton)sender; String id = btn.ID.Replace("btnNon_", ""); LibrairieLINQ.desactiverCompteClient(long.Parse(id)); String url = "~/Pages/InactiviteClients.aspx?"; Response.Redirect(url, true); }
public void supprimerselections_click(Object sender, EventArgs e) { foreach (CheckBox c in lstCheckBox) { if (c.Checked) { String idClient = c.ID.Replace("checkbox_", ""); LibrairieLINQ.desactiverCompteClient(long.Parse(idClient)); } } String url = "~/Pages/InactiviteClients.aspx?NbMois=" + mois.SelectedValue; Response.Redirect(url, true); }
public void btnNon_click(Object sender, EventArgs e) { HtmlButton btn = (HtmlButton)sender; String id = ""; if (this.typeUtilisateurCourant == "C") { id = btn.ID.Replace("btnNonClient_", ""); LibrairieLINQ.desactiverCompteClient(long.Parse(id)); } else if (this.typeUtilisateurCourant == "V") { id = btn.ID.Replace("btnNonVendeur_", ""); LibrairieLINQ.desactiverCompteVendeur(long.Parse(id)); } String url = "~/Pages/RendreInactif.aspx?TypeUtilisateur=" + typeUtilisateur.SelectedValue; Response.Redirect(url, true); }