/*
         * public string stt(int i)
         * {
         *
         *  if (page_.Value != null)
         *  {
         *      return (i + (Convert.ToInt32(page_.Value) - 1) * 5).ToString();
         *  }
         *  else
         *  {
         *      return i.ToString();
         *  }
         * }*/

        protected void btnTrangThai_Click(object sender, EventArgs e)
        {
            LinkButton btn         = (LinkButton)(sender);
            string     id          = btn.CommandArgument;
            string     pageCurrent = "";

            if (page_.Value != null)
            {
                pageCurrent = page_.Value;
            }
            else
            {
                pageCurrent = "1";
            }
            tourController.capNhatTrangThaiTour(id);
            Session["mess"] = "capnhattrangthaithanhcong";
            Response.Redirect("danhsachtour.aspx?page=" + pageCurrent);
        }