Cookie CookieµÄÓ÷¨Ò²ºÍASPÖв¶à¡£±ÈÈçÎÒÃǽ¨Á¢Ò»¸öÃûΪaspcn£¬ÖµÎª·Éµ¶µÄcookie HttpCookie cookie = new HttpCookie["aspcn"]; cookie.Value = "·Éµ¶"; Response.AppendCookie(cookie); ÎÒÃÇÈ¡³öCookieÖµÒ²ºÜ¼òµ¥ HttpCookie cookie = Request.Cookies["aspcn"]; cookieValue = cookie.Value; ÓÐʱºòÎÒÃÇÏëÔÚÒ»¸öCookieÖд¢´æ¶à¸öÐÅÏ¢£¬ÄÇҲûÓÐÎÊÌâ¡£±ÈÈçÎÒÃÇÔÚÃûΪaspcnµÄcookieϼӶà¸öÐÅÏ¢ HttpCookie cookie = new HttpCookie("aspcn"); cookie.Values.Add("webmaster","·Éµ¶"); cookie.Values.Add("writer","beige"); cookie.Values.Add("LinkColor","blue"); Response.AppendCookie(cookie); È¡³öÐÅÏ¢Ò²Ò»Ñù¼òµ¥ HttpCookie cookie = Request.Cookies["aspcn"]; value1 = cookies.Values["webmaster"]; value2 = cookies.Values["writer"]; View State ÕâÊÇÒ»¸öгöÀ´µÄ¶«¶«£¬Ó÷¨ºÍSessionÒ»Ñù£¬ËûµÄÖ÷ÒªÓÃ;ÊǼǼWeb ControlµÄ״̬¡£ËäÈ»ÊÇгöÀ´µÄ£¬µ«ÊǺÍApplication¡¢SessionµÄÓ÷¨Ã»ÓÐʲôÇø±ð£¬ËùÒÔÒ²²»ÏëÏêϸ½²½âÁË¡£ State["DropLoadIndex"] = 0 ; »ù±¾Ó÷¨ÈçÉÏ£º£©,µ«ÊÇÇë¼Çס£¬Ëû±£´æÔÚµÄÐÅÏ¢Ö»ÄÜÔÚÒ»¸öaspxÎļþÖÐʹÓᣳöÈ¥ºó£¬Õâ¸ö¾ÍûÓÐÓÃÁË£¬ÒòΪËûµÄÓÃ;ֻÊDZ£´æWEB¿Ø¼þµÄ״̬¡£ ASP.Net¸ß¼¶Ó¦Óà ASP.NetµÄ»ù´¡²¿·Ö£¬ÎÒÃÇÒѾ½²½âÍê±Ï,µ«ÊÇÕ⻹²»ÊÇÍ겿ASP.NetµÄ¹¦ÄÜ£¬»¹ÓкöàµÄASP.Netй¦ÄÜÇ¿´óµÄºÜ°¡¡£ Web Service Track ¹ú¼Ê»¯ Cache ÖÆ×÷×é¼þ ÖƼþ¿Ø¼þ »¹Óкöడ£¬ºÇºÇ£¬ÎÒ²»¿ÉÄÜÒ»¿ÚÆø½²ÏÂÈ¥ÁË£¬ÎÒÃÇÏÂÒ»¸öרÌâ¾ÍÊÇ¡¶ASP.Net¸ß¼¶Ó¦Óýø½×¡·ÏµÁÐÀ²¡£¡¶Ç×ÃܽӴ¥ASP.Net¡·Ö÷Òª½²»ù´¡£¬ºÇºÇ£¬ÎÒÒѾ½²ÍêÁË£º£© ÁíÍâ×î½ü¿ÉÒÔ¿ÉÄÜҪдһ±¾¹ØÓÚASP.NetºÍC#µÄÊ飬ËùÒÔ¿ÉÒÔÔÚÍøÉÏдÎÄÕµÄËٶȾͻá±äÂýÀ²£º£© ¡¡ |