把寫內(nèi)容過程中比較常用的內(nèi)容段做個備份,如下內(nèi)容是關(guān)于asp.net中通過cookie傳遞參數(shù)的內(nèi)容。
HttpCookie cookie = new HttpCookie("mycookie");
cookie.Value = "cookie值";
Response.AppendCookie(cookie);
Response.Redirect("index.aspx");
Request.Cookies["mycookie"].Value.ToString();