日期:2014-05-17 浏览次数:20546 次
protected void btn_Click(object sender, EventArgs e)
{
HttpCookie aa = new HttpCookie("123", "1234");
Response.Cookies.Add(aa);
string msg = Request.Cookies["123"].Value;
Page.RegisterStartupScript("", "<script>alert(" + msg + ")</script>");
}