Esempio n. 1
0
        protected void AttendRepeater_ItemCommand(object source, RepeaterCommandEventArgs e)
        {
            switch (e.CommandName)
            {
            case "Modify2":
                string[] arg1 = e.CommandArgument.ToString().Split(',');
                Response.Redirect("AttendAdd.aspx?Opera=Edit&&PARTICIPATORId=" + int.Parse(arg1[0]) + "&&MId=" + int.Parse(arg1[1]));
                break;

            case "Delete2":
                string[] arg2            = e.CommandArgument.ToString().Split(',');
                int      participator_id = int.Parse(arg2[0]);
                int      m_id            = int.Parse(arg2[1]);
                mbll.DeleteAttend(participator_id, m_id);
                Response.Redirect("AttendList.aspx");
                break;

            case "Check2":
                string[] arg3 = e.CommandArgument.ToString().Split(',');
                Response.Redirect("AccompanyList.aspx?Opera=Check&&PARTICIPATORId=" + int.Parse(arg3[0]) + "&&MId=" + int.Parse(arg3[1]));
                break;
            }
        }