示例#1
0
        protected void DepartmentRepeater_ItemCommand(object source, RepeaterCommandEventArgs e)
        {
            switch (e.CommandName)
            {
            case "Modify":
                Response.Redirect("DepartmentAdd.aspx?Opera=Edit&&DId=" + e.CommandArgument.ToString());
                break;

            case "Delete":
                string dept_id = e.CommandArgument.ToString();
                mbll.DeleteDepartment(dept_id);
                Response.Redirect("DepartmentList.aspx");
                break;

            case "Check":
                Response.Redirect("MeetingList.aspx?Opera=Check&&DId=" + e.CommandArgument.ToString());
                break;
            }
        }