本文實例講述了asp.net中使用cookie傳遞參數(shù)的方法。。具體如下:
//傳值HttpCookie cookie = new HttpCookie("mycookie");cookie.Value = "cookie值";Response.AppendCookie(cookie);Response.Redirect("index.aspx"); //接收Request.Cookies["mycookie"].Value.ToString();希望本文所述對大家的C#程序設(shè)計有所幫助。
新聞熱點
疑難解答
圖片精選