ASP.NET
ÔÚÐí¶àÓ¦ÓóÌÐòÖУ¬ÐèÒª´æ´¢²¢Ê¹ÓöÔÓû§Î¨Ò»µÄÐÅÏ¢¡£Óû§·ÃÎÊÕ¾µãʱ£¬Äú¿ÉÒÔʹÓÃÒÑ´æ´¢µÄÐÅÏ¢ÏòÓû§ÏÔʾ Web Ó¦ÓóÌÐòµÄ¸öÐÔ»¯°æ±¾¡£¸öÐÔ»¯Ó¦ÓóÌÐòÐèÒª´óÁ¿µÄÔªËØ£º±ØÐëʹÓÃΨһµÄÓû§±êʶ·û´æ´¢ÐÅÏ¢£¬Äܹ»ÔÚÓû§ÔٴηÃÎÊʱʶ±ðÓû§£¬È»ºó¸ù¾ÝÐèÒª»ñÈ¡Óû§ÐÅÏ¢¡£ÈôÒª¼ò»¯Ó¦ÓóÌÐò£¬¿ÉÒÔʹÓà ASP.NET ÅäÖÃÎļþ¹¦ÄÜ£¬¸Ã¹¦ÄÜ¿ÉΪÄúÖ´ÐÐËùÓÐÉÏÊöÈÎÎñ¡£
ASP.NET ÅäÖÃÎļþ¹¦Äܽ«ÐÅÏ¢Óëµ¥¸öÓû§¹ØÁª£¬²¢²ÉÓó־ÃÐԵĸñʽ´æ´¢ÕâЩÐÅÏ¢¡£Í¨¹ýÅäÖÃÎļþ£¬¿ÉÒÔ¹ÜÀíÓû§ÐÅÏ¢£¬¶øÎÞÐè´´½¨ºÍά»¤×Ô¼ºµÄÊý¾Ý¿â¡£´ËÍ⣬ͨ¹ýʹÓÿɴÓÓ¦ÓóÌÐòÖеÄÈκÎλÖ÷ÃÎʵÄÇ¿ÀàÐÍ API£¬¾Í¿ÉÒÔ½èÖú ASP.NET ÅäÖÃÎļþ¹¦ÄÜʹÓÃÏà¹ØµÄÓû§ÐÅÏ¢¡£
¿ÉÒÔʹÓÃÅäÖÃÎļþ´æ´¢ÈκÎÀàÐ͵ĶÔÏó¡£ÅäÖÃÎļþ¹¦ÄÜÌṩÁËÒ»ÏîͨÓô洢¹¦ÄÜ£¬Ê¹ÄúÄܹ»¶¨ÒåºÍά»¤¼¸ºõÈκÎÀàÐ͵ÄÊý¾Ý£¬Í¬Ê±ÈÔ¿ÉÓÃÀàÐÍ°²È«µÄ·½Ê½Ê¹ÓÃÊý¾Ý¡£
1¡¢ASP.NET ÅäÖÃÎļþµÄ¹¤×÷·½Ê½
ÈôҪʹÓÃÅäÖÃÎļþ£¬Ê×ÏÈӦͨ¹ýÐÞ¸Ä ASP.NET Web Ó¦ÓóÌÐòµÄÅäÖÃÎļþÀ´ÆôÓÃÅäÖÃÎļþ¡£ÒªÔÚÅäÖÃÖÐÖ¸¶¨ÅäÖÃÎļþÌṩ³ÌÐò£¬¸ÃÌṩ³ÌÐòÊÇÖ´Ðд洢ºÍ¼ìË÷ÅäÖÃÎļþÊý¾ÝµÈµÍ¼¶ÈÎÎñµÄ»ù´¡Àà¡£¿ÉÒÔʹÓà .NET Framework ÖаüÀ¨µÄÅäÖÃÎļþÌṩ³ÌÐò£¨»á½«ÅäÖÃÎļþÊý¾Ý´æ´¢ÔÚ SQL Server ÖУ©£¬Ò²¿ÉÒÔ°´ÕÕ ÊµÏÖÅäÖÃÎļþÌṩ³ÌÐò Ö÷ÌâÖÐÃèÊöµÄÄÇÑù´´½¨²¢Ê¹ÓÃ×Ô¼ºµÄÅäÖÃÎļþÌṩ³ÌÐò¡£¿ÉÒÔÖ¸¶¨Á¬½Óµ½ËùÑ¡µÄÊý¾Ý¿âµÄ SqlProfileProvider ʵÀý£¬Ò²¿ÉÒÔʹÓý«ÅäÖÃÎļþÊý¾Ý´æ´¢ÔÚ±¾µØ Web ·þÎñÆ÷ÉϵÄĬÈÏ SqlProfileProvider ʵÀý¡£
ͨ¹ý¶¨ÒåҪά»¤ÆäÖµµÄÊôÐÔµÄÁÐ±í£¬¿ÉÒÔ¶ÔÅäÖÃÎļþ¹¦ÄܽøÐÐÅäÖá£ÀýÈ磬Äú¿ÉÄÜÐèÒª´æ´¢Óû§µÄÓÊÕþ±àÂ룬ÒÔʹÄúµÄÓ¦ÓóÌÐò¿ÉÒÔÌṩÌض¨ÓÚÇøÓòµÄÐÅÏ¢£¬ÈçÌìÆøÔ¤±¨µÈ¡£ÔÚÅäÖÃÎļþÖУ¬Ó¦¶¨ÒåÒ»¸öÃûΪ PostalCode µÄÅäÖÃÎļþÊôÐÔ¡£ÅäÖÃÎļþµÄ profile ½ÚÓëÈçÏÂËùʾÀàËÆ£º
<profile>
<properties>
<add name="PostalCode" />
</properties>
</profile>
Ó¦ÓóÌÐòÔËÐÐʱ£¬ASP.NET »á´´½¨Ò»¸ö ProfileCommon À࣬¸ÃÀàÊÇÒ»¸ö¶¯Ì¬Éú³ÉµÄÀ࣬´Ó ProfileBase Àà¼Ì³Ð¶øÀ´¡£¶¯Ì¬µÄ ProfileCommon Àà°üÀ¨¸ù¾ÝÔÚÓ¦ÓóÌÐòÅäÖÃÖÐÖ¸¶¨µÄÅäÖÃÎļþÊôÐÔ¶¨Òå´´½¨µÄÊôÐÔ¡£È»ºó£¬»á½«´Ë¶¯Ì¬ ProfileCommon ÀàµÄʵÀýÉèÖÃΪµ±Ç° HttpContext µÄ Profile ÊôÐÔµÄÖµ£¬²¢ÇÒ¿ÉÔÚÓ¦ÓóÌÐòµÄÒ³ÖÐʹÓá£
ÔÚÓ¦ÓóÌÐòÖÐ
Ïà¹ØÎĵµ£º
ÔÚWeb±à³Ì¹ý³ÌÖУ¬´æÔÚןܶలȫÒþ»¼¡£±ÈÈçÔÚÒÔÇ°µÄASP°æ±¾ÖУ¬CookieΪ·ÃÎÊÕߺͱà³ÌÕ߶¼ÌṩÁË·½±ã£¬²¢Ã»ÓÐÌṩ¼ÓÃܵŦÄÜ¡£´ò¿ªIEä¯ÀÀÆ÷£¬Ñ¡Ôñ“¹¤¾ß”²Ëµ¥ÀïµÄ“InternetÑ¡Ï¬È»ºóÔÚµ¯³öµÄ¶Ô»°¿òÀïµ¥»÷“ÉèÖÔ°´Å¥£¬Ñ¡Ôñ“²é¿´Îļþ”°´Å¥£¬ÔÚµ¯³öµÄ´°¿ÚÖУ¬¾Í»áÏÔʾӲÅÌÀï ......
ĬÈÏÇé¿öÏ£¬ÄäÃûÓû§²»ÄÜÐÞ¸ÄprofileÊôÐÔ£¬ÎÊÌâÔÚÓÚASP.NET FrameworûÓа취¹ØÁªProfileÊý¾ÝºÍÌض¨µÄÓû§£¬³ý·ÇÓû§ÊǾ¹ýÉí·ÝÑéÖ¤µÄ¡£
Èç¹ûÏ£ÍûÄäÃûÓû§ÐÞ¸ÄprofileµÄÊôÐÔ£¬±ØÐëÆôÓÃASP.NET FrameworkµÄÄäÃûÈÏÖ¤£¨Anonymous Identification£©µÄ¹¦ÄÜ¡£µ±¿ªÆôÕâ¸ö¹¦ÄÜʱ£¬Ò»¸ö±êʶ£¨Ò»¸öGUID£©±»·ÖÅä¸øÄäÃûÓû§£¬²¢ ......
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 ......
//ÔÚµ±Ç°Ò³ÖйرÕ
Response.Write("<Script>window.opener.opener= null;window.opener.location.replace(window.opener.location.href='ideabank.aspx');window.close();</Script>");
//¸¸ÀàÒ³´ò¿ª ×ÓÒ³
Response.Write("<script>window.open('upideabank.aspx?id="+id+"','','height=50 ......
»ñÈ¡Óйط¢³öÒ³ÇëÇóµÄÓû§µÄÐÅÏ¢¡£
Ò»¡¢HttpContext Àà
·â×°Óйظö±ð HTTP ÇëÇóµÄËùÓÐ HTTP Ìض¨µÄÐÅÏ¢¡£
HttpContext ÀàÐ͹«¿ªÒÔϳÉÔ±¡£
¹¹Ô캯Êý
Ãû³Æ
˵Ã÷
HttpContext
ÒÑÖØÔØ¡£ ³õʼ»¯ LinePragmaCodeInfo ÀàµÄÒ»¸öÐÂʵÀý¡£
·½·¨
Ãû³Æ
˵Ã÷
AddError
½«Òì³£Ìí¼Óµ½µ±Ç° HTTP ÇëÇóµÄÒ ......