//レンタル中の商品を表示
        private void View_Items_Currently_Being_Rented()
        {
            //入力されたテキストを取得
            string member_id_storehouse = Get_MemberId_From_TextBox();

            if (member_id_storehouse != "")
            {
                //テキストが入力されていたら


                m_member_id = int.Parse(Get_MemberId_From_TextBox());
                //チェックボックスのクリア
                CheckBoxList1.Items.Clear();

                //抽出したdvdidデータの格納先
                List <string> dvdid_storehouse = C_Sasaki_Common.Extract_The_Unreturned_DVD_IDs_Of_The_Entered_Member_ID(member_id_storehouse);

                List <string> unreturned_id = new List <string>();
                //レンタル中の商品のIdを抽出
                C_Sasaki_Common.Select_SQL("Select * From [dbo].[Rental] Where " + member_id_storehouse + " = MemberId AND IsReturned = 0", "Id", unreturned_id);
                Session["unreturned_id"] = string.Join(",", unreturned_id);

                int dvd_id_num = dvdid_storehouse.Count();
                for (int i = 0; i < dvd_id_num; i++)
                {
                    //抽出したDVDの名前の格納先
                    string dvd_name_storehouse = null;

                    //dvdidから名前に変換
                    dvd_name_storehouse = C_Sasaki_Common.Extract_The_Name_Of_The_DVD_That_Matches_The_DVD_ID(dvdid_storehouse.ElementAt(i));


                    CheckBoxList1.Items.Add(dvd_name_storehouse);
                }
            }
            else
            {
                //テキストが入力されていない場合
            }
        }
        protected void Page_Load(object sender, EventArgs e)
        {
            if (Request.Cookies["login"] != null)
            {
                if (Request.Cookies["login"].Value != "")
                {
                    if (Session[Request.Cookies["login"].Value] != null)
                    {
                        if (Session[Request.Cookies["login"].Value].ToString() == "0")
                        {
                            Response.Redirect("./../../RentalForm.aspx");
                        }
                    }
                    else
                    {
                        Session[Request.Cookies["login"].Value] = null;
                        Response.Cookies["login"].Expires       = DateTime.Now.AddDays(-1);
                        Response.Redirect("./../../login.aspx");
                    }
                }
                else
                {
                    Response.Cookies["login"].Expires = DateTime.Now.AddDays(-1);
                    Response.Redirect("./../../login.aspx");
                }
            }
            else
            {
                Response.Cookies["login"].Expires = DateTime.Now.AddDays(-1);
                Response.Redirect("./../../login.aspx");
            }


            //dvdidの文字列取得
            String selected_dvd_id = Session["Select_DVD_ID"].ToString();

            //,で区切られたdvdidを分割
            string[] str_arr = selected_dvd_id.Split(',');

            //メンバーID格納
            m_member_id = int.Parse(Session["Member_ID"].ToString());

            //リストに格納
            int dvd_id_num = str_arr.Length;

            for (int i = 0; i < dvd_id_num; i++)
            {
                return_dvd_id_list.Add(int.Parse(str_arr[i]));
            }

            if (!IsPostBack)
            {
                //ポストバックじゃなければ

                //Listのクリア
                BulletedList1.Items.Clear();

                for (int i = 0; i < dvd_id_num; i++)
                {
                    string dvd_name = C_Sasaki_Common.Extract_The_Name_Of_The_DVD_That_Matches_The_DVD_ID(str_arr[i]);
                    BulletedList1.Items.Add(dvd_name);
                }
            }

            Label1.Text = "以下の" + BulletedList1.Items.Count + "点の商品を返却します。";
        }