HttpUtility.UrlDecode HttpUtility.UrlEncodeHttpContext.Current.Request.Cookies["UserCode"].Value HttpContext.Current.Response.Cookies["UserCode"].Value = HttpUtility.UrlEncode(value)