»áÔ±£º ÃÜÂ룺 ¡¡Ãâ·Ñ×¢²á | Íü¼ÇÃÜÂë | »áÔ±µÇ¼ ÍøÒ³¹¦ÄÜ£º ¼ÓÈëÊÕ²Ø ÉèΪÊ×Ò³ ÍøÕ¾ËÑË÷  
 °²È«¼¼Êõ¼¼ÊõÎĵµ
  ¡¤ °²È«ÅäÖÆ
  ¡¤ ¹¤¾ß½éÉÜ
  ¡¤ ºÚ¿Í½Ìѧ
  ¡¤ ·À»ðǽ
  ¡¤ Â©¶´·ÖÎö
  ¡¤ ÆƽâרÌâ
  ¡¤ ºÚ¿Í±à³Ì
  ¡¤ ÈëÇÖ¼ì²â
 °²È«¼¼ÊõÂÛ̳
  ¡¤ °²È«ÅäÖÆ
  ¡¤ ¹¤¾ß½éÉÜ
  ¡¤ ·À»ðǽ
  ¡¤ ºÚ¿ÍÈëÇÖ
  ¡¤ Â©¶´¼ì²â
  ¡¤ Æƽⷽ·¨
  ¡¤ É±¶¾×¨Çø
 °²È«¼¼Êõ¹¤¾ßÏÂÔØ
  ¡¤ É¨Ã蹤¾ß
  ¡¤ ¹¥»÷³ÌÐò
  ¡¤ ºóÃÅľÂí
  ¡¤ ¾Ü¾ø·þÎñ
  ¡¤ ¿ÚÁîÆƽâ
  ¡¤ ´úÀí³ÌÐò
  ¡¤ ·À»ðǽ
  ¡¤ ¼ÓÃܽâÃÜ
  ¡¤ ÈëÇÖ¼ì²â
  ¡¤ ¹¥·ÀÑÝʾ
¼¼ÊõÎĵµ > Web¿ª·¢ > ASP.Net
Ç×ÃܽӴ¥ASP.Net(16)
·¢±íÈÕÆÚ£º2003-06-26 00:00:00×÷Õߣº· ³ö´¦£º  

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#µÄÊ飬ËùÒÔ¿ÉÒÔÔÚÍøÉÏдÎÄÕµÄËٶȾͻá±äÂýÀ²£º£©

¡¡

¡¾·µ»Ø¶¥²¿¡¿ ¡¾´òÓ¡±¾Ò³¡¿ ¡¾¹Ø±Õ´°¿Ú¡¿

¹ØÓÚÎÒÃÇ / ¸øÎÒÁôÑÔ / °æȨ¾Ù±¨ / Òâ¼û½¨Òé / ÍøÕ¾±à³ÌQQȺ   
Copyright ©2003- 2024 Lihuasoft.net webmaster(at)lihuasoft.net ¼ÓÔØʱ¼ä 0.00165