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

            case "Delete3":
                string[] arg2            = e.CommandArgument.ToString().Split(',');
                int      participator_id = int.Parse(arg2[0]);
                int      m_id            = int.Parse(arg2[1]);
                int      re_id           = int.Parse(arg2[2]);
                mbll.DeleteAccompany(participator_id, m_id, re_id);

                int PARTICIPATORId = int.Parse(Request.QueryString["PARTICIPATORId"]);
                int MId            = int.Parse(Request.QueryString["MId"]);
                Response.Redirect("AccompanyList2.aspx?Opera=Check&&MId=" + MId + "&&PARTICIPATORId=" + PARTICIPATORId);
                break;
            }
        }