ASP.NET LINQ _1
ʲôÊÇLINQ?
LINQÊÇÓïÑÔ¼¯³É²éѯ(Language Integrated Query)µÄ¼ò³Æ£¬ÊÇVisual Studio 2008 ºÍ.NET Framework 3.5 °æÖÐÒ»Ïî,Í»ÆÆÐԵĴ´Ð£¬ËüÔÚ¶ÔÏóÁìÓòºÍÊý¾ÝÁìÓòÖ®¼ä¼ÜÆðÁËÒ»×ùÇÅÁº.
Ò»¸ö¼òµ¥LINQ²éѯ£º
ʵÏÖЧ¹û£º
´«Í³²éѯµÄȱµã£º¼òµ¥µÄ×Ö·û´®±íʾ£¬Ã»ÓбàÒëʱÀàÐͼì²é£¬Ã»ÓÐIDEµÄÖÇÄܸÐÖª(IntelliSense)Ö§³Ö ¡£
Ïà¹ØÎĵµ£º
//´´½¨
HttpCookie cookie = new HttpCookie("user","111");//´´½¨Cookie
cookie Expires = DateTime.Now.Add(15);//ÉèÖùýÆÚʱ¼ä
Response.Cookies.Add(cookie);//´æÈë¿Í»§¶Ë
ÎÒÃÇÈ¡³öCookieÖµÒ²ºÜ¼òµ¥
string value = Request.Cookies["user"].value;
ÓÐʱºòÎÒÃÇÏëÔÚÒ»¸öCookieÖд¢´æ¶à¸öÐÅÏ¢£¬ÄÇÒ ......
¼ìË÷ COM À๤³§ÖÐ CLSID Ϊ {000209FF-0000-0000-C000-000000000046} µÄ×é¼þʱʧ°Ü£¬ÔÒòÊdzöÏÖÒÔÏ´íÎó: 80070005¡£
˵Ã÷: Ö´Ðе±Ç° Web ÇëÇóÆڼ䣬³öÏÖδ´¦ÀíµÄÒì³£¡£Çë¼ì²é¶ÑÕ»¸ú×ÙÐÅÏ¢£¬ÒÔÁ˽âÓйظôíÎóÒÔ¼°´úÂëÖе¼Ö´íÎóµÄ³ö´¦µÄÏêϸÐÅÏ¢¡£
Òì³£ÏêϸÐÅÏ¢: System.UnauthorizedAccessException: ¼ìË÷ COM À๤ ......
1. Êý¾Ý¿â·ÃÎÊÐÔÄÜÓÅ»¯¡¡
¡¡
Êý¾Ý¿âµÄÁ¬½ÓºÍ¹Ø±Õ
·ÃÎÊÊý¾Ý¿â×ÊÔ´ÐèÒª´´½¨Á¬½Ó¡¢´ò¿ªÁ¬½ÓºÍ¹Ø±ÕÁ¬½Ó¼¸¸ö²Ù×÷¡£ÕâЩ¹ý³ÌÐèÒª¶à´ÎÓëÊý¾Ý¿â½»»»ÐÅÏ¢ÒÔͨ¹ýÉí·ÝÑéÖ¤£¬±È½ÏºÄ·Ñ·þÎñÆ÷×ÊÔ´¡£ASP.NETÖÐÌṩÁËÁ¬½Ó³Ø(Connection Pool)¸ÄÉÆ´ò¿ªºÍ¹Ø±ÕÊý¾Ý¿â¶ÔÐÔÄܵÄÓ°Ï졣ϵͳ½«Óû§µÄÊý¾Ý¿âÁ¬½Ó·ÅÔÚÁ¬½Ó³ØÖУ¬ ......
ÔÚwebconfigÖÐÓÐÒ»¸öÖØÒª½Úµã <system.web> ÆäÖаüÀ¨ÁËÒ»¸öÉí·ÝÑéÖ¤ÅäÖýڵã
<authentication mode="Windows"/>
ÆäÖÐ authentication ÊǽڵãÃû£¬modeÊÇģʽ£¬ÉÏÊö´úÂë±íʾ ²ÉÓÃwindowsÉí·ÝÑéÖ¤£¬ÄÇô´ËʱÉí·ÝÑéÖ¤½«½»¸øiis´¦Àí£¬¶øiisÖÐĬÈÏÉè
<authentication mode="Forms" >
&n ......
ÎåÖÖ³£¼ûµÄASP.NET°²È«È±ÏÝ
±£Ö¤Ó¦ÓóÌÐòµÄ°²È«Ó¦µ±´Ó±àдµÚÒ»ÐдúÂëµÄʱºò¿ªÊ¼×öÆð£¬ÔÒòºÜ¼òµ¥£¬Ëæ×ÅÓ¦ÓùæÄ£µÄ·¢Õ¹£¬ÐÞ²¹°²È«Â©¶´ËùÐèµÄ´ú¼ÛÒ²ËæÖ®¿ìËÙÔö³¤¡£¸ù¾ÝIBMµÄϵͳ¿ÆѧлᣨSystems Sciences Institute£©µÄÑо¿£¬Èç¹ûµÈµ½Èí¼þ²¿ÊðÖ®ºóÔÙÀ´ÐÞ²¹È±ÏÝ£¬Æä´ú¼ÛÏ൱ÓÚ¿ª·¢ÆÚ¼ä¼ì²âºÍÏû³ýȱÏݵÄ15±¶¡£
¡¡¡¡Î ......