ASP.NET
״̬¹ÜÀíÊÇÄú¶Ôͬһҳ»ò²»Í¬Ò³µÄ¶à¸öÇëÇóά»¤×´Ì¬ºÍÒ³ÐÅÏ¢µÄ¹ý³Ì¡£ÓëËùÓлùÓÚ HTTP µÄ¼¼ÊõÒ»Ñù£¬Web ´°ÌåÒ³ÊÇÎÞ״̬µÄ£¬ÕâÒâζ×ÅËüÃDz»×Ô¶¯Ö¸Ê¾ÐòÁÐÖеÄÇëÇóÊÇ·ñÈ«²¿À´×ÔÏàͬµÄ¿Í»§¶Ë£¬»òÕßµ¥¸öä¯ÀÀÆ÷ʵÀýÊÇ·ñÒ»Ö±Ôڲ鿴ҳ»òÕ¾µã¡£´ËÍ⣬µ½·þÎñÆ÷µÄÿһÍù·µ¹ý³Ì¶¼½«Ïú»Ù²¢ÖØд´½¨Ò³£»Òò´Ë£¬Èç¹û³¬³öÁ˵¥¸öÒ³µÄÉúÃüÖÜÆÚ£¬Ò³ÐÅÏ¢½«²»´æÔÚ¡£
ASP.NET Ìṩ¶àÖÖ·½Ê½À´ÔÚ·þÎñÆ÷Íù·µ¹ý³ÌÖ®¼äά»¤×´Ì¬¡£¶ÔÕâЩ״̬¹ÜÀíÑ¡ÏîµÄÑ¡ÔñÖ÷Ҫȡ¾öÓÚÄúµÄÓ¦ÓóÌÐò£¬²¢ÇÒÓ¦»ùÓÚÒÔÏÂÌõ¼þ£º
·ÐèÒª´æ´¢µÄÐÅÏ¢Á¿Óжà´ó£¿
·¿Í»§¶ËÊǽÓÊܳ־ÃÐԵĻ¹ÊÇÄÚ´æÖÐµÄ Cookie£¿
·Òª½«ÐÅÏ¢´æ´¢ÔÚ¿Í»§¶Ë»¹ÊÇ·þÎñÆ÷ÉÏ£¿
·ÐÅÏ¢ÊÇ·ñÊÇÃô¸ÐÐÅÏ¢£¿
·Äú¶ÔÓ¦ÓóÌÐòÉ趨ÁËʲôÑùµÄÐÔÄܺʹø¿íÌõ¼þ£¿
·Ä¿±êä¯ÀÀÆ÷ºÍÉ豸¾ßÓÐʲôÑùµÄ¹¦ÄÜ£¿
·ÄúÊÇ·ñÐèÒª´¢´æ»ùÓÚÓû§µÄÐÅÏ¢£¿
·ÐÅÏ¢ÐèÒª´æ´¢¶à³¤Ê±¼ä£¿
ÄúʹÓà Web ³¡£¨¶à¸ö·þÎñÆ÷£©¡¢Web Ô°£¨Ò»¸ö¼ÆËã»úÉϵĶà¸ö½ø³Ì£©»¹Êǵ¥¸ö½ø³ÌÀ´ÔËÐÐÓ¦ÓóÌÐò£¿
Ò»¡¢¿Í»§¶Ë״̬¹ÜÀíÑ¡Ïî
ʹÓÿͻ§¶ËÑ¡Ïî´æ´¢Ò³ÐÅÏ¢²»Ê¹Ó÷þÎñÆ÷×ÊÔ´¡£ÕâЩѡÏîÍùÍù¾ßÓÐ×îµÍµÄ°²È«ÐÔµ«¾ßÓнϿìµÄ·þÎñÆ÷ÐÔÄÜ£¬ÒòΪ¶Ô·þÎñÆ÷×ÊÔ´µÄÒªÇóÊÇÊʶȵġ£µ«ÊÇ£¬ÓÉÓÚ±ØÐ뽫ÐÅÏ¢·¢Ë͵½¿Í»§¶ËÀ´½øÐд洢£¬Òò´Ë¶ÔÓÚÒÔÕâÖÖ·½Ê½¿ÉÒÔ´æ´¢¶àÉÙÐÅÏ¢´æÔÚÒ»¶¨µÄ¿Í¹ÛÏÞÖÆ¡£
ÒÔÏÂÊÇ ASP.NET Ö§³ÖµÄ¿Í»§¶Ë״̬¹ÜÀíÑ¡Ï
ÊÓͼ״̬¡¢¿Ø¼þ״̬¡¢Òþ²Ø×ֶΡ¢Cookie¡¢²éѯ×Ö·û´®
1¡¢ÊÓͼ״̬
Web ´°ÌåÒ³Ìṩ ViewState ÊôÐÔ×÷ΪÄÚÖýṹ£¬ÔÚ¶ÔͬһҳµÄ¶à¸öÇëÇó¼ä×Ô¶¯±£ÁôÖµ¡£ÊÓͼ״̬×÷ΪҳÖеÄÒþ²ØÓòÀ´½øÐÐά»¤¡£
¿ÉÒÔʹÓÃÊÓͼ״̬ÔÚÒ³»Ø·¢µ½×ÔÉíʱ¿çÔ½Íù·µ¹ý³Ì´æ´¢Äú×Ô¼ºµÄÒ³Ìض¨Öµ¡£ÀýÈ磬Èç¹ûÄúµÄÓ¦ÓóÌÐòÕýÔÚά»¤Óû§Ìض¨µÄÐÅÏ¢£¨¼´£¬¸ÃÐÅÏ¢ÔÚÒ³ÉÏʹÓ㬵«²»ÊÇÈκοؼþËù±ØÐèµÄ²¿·Ö£©£¬Ôò¿ÉÒÔʹÓÃÊÓͼ״̬´æ´¢¸ÃÐÅÏ¢¡£
ʹÓÃÊÓͼ״̬µÄÓŵãΪ£º
·²»ÐèÒªÈκηþÎñÆ÷×ÊÔ´ ÊÓͼ״̬°üº¬ÔÚÒ³´úÂëÄڵĽṹÖС£
·ÊµÏÖ¼òµ¥ ÊÓͼ״̬ÎÞÐèʹÓÃÈκÎ×Ô¶¨Òå±à³Ì¡£Ä¬ÈÏÇé¿ö϶ԿؼþÆôÓÃ״̬Êý¾ÝµÄά»¤¡£
·ÔöÇ¿µÄ°²È«¹¦ÄÜ ÊÓͼ״̬ÖеÄÖµ¾¹ý¹þÏ£¼ÆËãºÍѹËõ£¬²¢ÇÒÕë¶Ô Unicode ʵÏÖ½øÐбàÂ룬Æ䰲ȫÐÔÒª¸ßÓÚʹÓÃÒþ²ØÓò¡£
ʹÓÃÊÓͼ״̬µÄȱµãΪ£º
·ÐÔÄÜ×¢ÒâÊÂÏî ÓÉÓÚÊÓͼ״̬´æ´¢ÔÚÒ³±¾Éí£¬Ò
Ïà¹ØÎĵµ£º
ÔÚASP.NETÍøÕ¾ÖÐÍøÕ¾¹ÜÀíºǫ́ÐèÒª¾³£ÑéÖ¤Óû§Éí·Ý,ҪʵÏÖÕâÖÖ¹¦ÄܾͿÉÒÔÀûÓÃÄǸö¼Ì³Ð»úÖƺÍASP.NETµÄʼþ»úÖÆ.Ê×Ïȶ¨ÒåÒ»¸öÐèÒª½øÐÐÉí·ÝÑéÖ¤µÄBasePageÀà,¼Ì³Ð×ÔPageÀà,ÔÚBasePageÀàµÄ¹¹Ô캯ÊýÖж¨ÒåËüµÄ¼ÓÔØʼþµÄ´¦Àí´úÂë,ÕâÑùËùÓм̳Ð×ÔBasePageÀàµÄÒ³Ã涼ÄÜ×Ô¶¯Ö´ÐÐÉí·ÝÑéÖ¤£º
/// <summary>
/// ÑéÖ ......
1¡¢Ìí¼ÓÒ»¸öÍøÕ¾µØͼÏî Web.sitemapÏî
2¡¢ÔÚ Web.sitemapÏîµÄд·¨ÈçÏ£º
<?xml version="1.0" encoding="utf-8"?>
<siteMap xmlns="http://schemas.microsoft.com/AspNet/SiteMap-File-1.0
">
<siteMapNode url="default.aspx" title="Ê×Ò³&qu ......
WebjxComÌáʾ£ºÕâÀïÒ»¶¨ÒªÌí¼ÓWEB ÒýÓò˵¥²½ÖèÈçÏÂproject->add web reference...£¬È»ºóÊäÈëÎÒÃÇWeb ServiceµÄ·¾¶£¬ÕâÀïÊÇhttp://localhost/WebService1/Service1.asmx£¬µã»÷Ìí¼Ó¾ÍOKÁË¡£ÕâʱÄ㽫ÔÚÀàÊÓͼÖп´µ½localhostÃüÃû¿Õ¼äÁË¡£
ÕâÀïÒ»¶¨ÒªÌí¼ÓWEB ÒýÓò˵¥²½ÖèÈçÏÂproject->add web reference...£¬È»ºóÊä ......
What is ASP.NET
ASP.NET is a unified Web development model that includes the services necessary for you to build enterprise-class Web applications with a minimum of coding. ASP.NET is part of the .NET Framework, and when coding ASP.NET applications you have access to classes in the .NET Frame ......
ͨ³£²¿ÊôÍøÕ¾µÄʱºòÐèÒª±àÒëÄÇЩÐèÒªµÄÎļþ£¬ºÍһЩϵͳÐèÒªµÄ×é¼þ¡£
»á¸Ð¾õµ½ºÜ·±Ëö¡£
·¢²¼ÍøÕ¾ÊÇÒ»¸ö²»´íµÄÑ¡Ôñ:Ö±½Ó·¢²¼·þÎñÆ÷ÉÏ£¬ÉèÖúÃÕ¾µãÓë¶Ë¿Ú¼´¿É¡£ÒÔÏÂÊÇ×ܽáµÄ²½Öè¡£¡£¡£
µÚÒ»¡¢Êǽ«ÍøÕ¾ÀïËùÓеÄÊý¾ÝÁ¬½Ó¶¼×ö³É´Óweb.configÖжÁÈ¡£¬ÕâÑùµÄ»°£¬¾Í¿ÉÒÔÒ»ÀÍÓÀÒÝÁË¡£
µÚ¶þ¡¢¾ÍÊÇIISÉèÖÃÁË£¬ÔÚIISÖеÄasp.netÖÐ ......