Ejemplo n.º 1
0
 protected void GridView1_RowCommand(object sender, GridViewCommandEventArgs e)
 {
     if (e.CommandName.Equals("del"))
     {
         int   cid = Convert.ToInt32(e.CommandArgument);
         C_DAL Op  = new C_DAL();
         int   res = Op.delete(cid);
         if (res > 0)
         {
             GridView1.DataSource = Op.ViewAccount();
             GridView1.DataBind();
             Response.Write("Deactivated");
         }
     }
 }