点按钮写Cookie,关闭再打开,居然不显示啊,高人指点,是写错了还是读错了 
protected void Page_Load(object sender, EventArgs e)
    {
        try
        {
            HttpCookie hc1 = new HttpCookie("HYTTBZPT1");            TextBox1.Text = hc1.Values["UserName"].ToString();
            TextBox2.Text = hc1.Values["PassWord"].ToString();
        }
        catch { }
        //}
    }protected void Button1_Click(object sender, EventArgs e)
    {
        
            if (this.CheckBox1.Checked==true)
            {
                HttpCookie hc1 = new HttpCookie("HYTTBZPT1");
                hc1.Expires.AddYears(10);
                hc1["UserName"] = TextBox1.Text.ToString();
                hc1["PassWord"] = TextBox2.Text.ToString();
                this.Response.AppendCookie(hc1);            }
    }