コード例 #1
0
        protected void btnDelete_Click(Object Sender, EventArgs e)
        {
            string strHidden = Request.Form[hdnDelete.UniqueID];

            while (strHidden != "")
            {
                string strField = strHidden.Substring(0, strHidden.IndexOf("&"));
                strHidden = strHidden.Substring(strHidden.IndexOf("&") + 1);
                string strFlag = strField.Substring(strField.IndexOf("_") + 1);
                strField = strField.Substring(0, strField.IndexOf("_"));
                if (strFlag == "1")
                {
                    oServiceRequest.DeleteAll(Int32.Parse(strField));
                }
            }
            string strSort = "";

            if (Request.QueryString["sort"] != null)
            {
                strSort = Request.QueryString["sort"];
            }
            string strPage = "1";

            if (Request.QueryString["page"] != null)
            {
                strPage = Request.QueryString["page"];
            }
            Response.Redirect(oPage.GetFullLink(intPage) + "?sort=" + strSort + "&page=" + strPage);
        }