Beispiel #1
0
 protected void rep_adminlist_ItemCommand(object source, RepeaterCommandEventArgs e)
 {
     if (e.CommandName.Equals("delete"))
     {
         AdminTableAdapter ta_admin = new AdminTableAdapter();
         ta_admin.DeleteAdminById(Convert.ToInt32(e.CommandArgument));
         ValueInit();
     }
     if (e.CommandName.Equals("update"))
     {
         Response.Redirect("admininfo.aspx?id=" + e.CommandArgument);
     }
 }