Exemplo n.º 1
0
 /// <summary>
 /// Permet de supprimer le club
 /// </summary>
 /// <param name="sender"></param>
 /// <param name="e"></param>
 protected void BT_Supprimer_Click(object sender, EventArgs e)
 {
     try
     {
         int cric = 0;
         int.TryParse(HF_Cric.Value, out cric);
         if (cric != 0)
         {
             if (DataMapping.DeleteClub(cric))
             {
                 HF_Cric.Value = "0";
                 Response.Redirect(Globals.NavigateURL(tabid_EspMemb));
             }
         }
         else
         {
             throw new Exception("Supression du club cric : " + cric + " impossible!");
         }
     }
     catch (Exception ee)
     {
         Functions.Error(ee);
     }
 }
Exemplo n.º 2
0
 protected void btn_delete_Click(object sender, EventArgs e)
 {
     DataMapping.DeleteClub(int.Parse(btn_delete.CommandArgument));
     Response.Redirect(Globals.NavigateURL());
 }