예제 #1
0
        protected void AdminRepeater_ItemCommand(object source, RepeaterCommandEventArgs e)
        {
            switch (e.CommandName)
            {
            case "Modify":
                Response.Redirect("AdminAdd.aspx?Opera=Edit&&AId=" + int.Parse(e.CommandArgument.ToString()));
                break;

            case "Delete":
                int id = int.Parse(e.CommandArgument.ToString());
                mbll.DeleteAdmin(id);
                Response.Redirect("AdminList.aspx");
                break;
            }
        }