ASP.NET 2.0¸öÐÔ»¯ÅäÖã¨profile£©
Ϊÿ¸öÓû§´æ´¢ÅäÖÃÐÅÏ¢ ÒÔÇ°±£´æÓû§ÅäÖÃÐÅϢʱÓõ½µÄÊÇsessionºÍcookie¡£ session»á»°½áÊø£¬±£´æµÄ¸öÈËÐÅÏ¢¾Í»á¶ªÊ§£¬¶øcookieÔÚÒ»¶¨³Ì¶ÈÉÏ´æÔÚ°²È«Òþ»¼
asp.net 2.0ÒýÈëµÄprofile¼¼Êõ ¿ÉÒԺܺõĽâ¾ö¸ÃÎÊÌâ¡£
Ç¿ÀàÐÍ ³¤ÆÚ±£´æ Ö§³ÖÄäÃûÓû§
¶¨ÒåÅäÖã¨profile£©
<?xml version="1.0"?>
<configuration xmlns="http://schemas.microsoft.com/.NetConfiguration/v2.0">
<appSettings/>
<connectionStrings>
<add name="Northwind" connectionString="Server=localhost;Integrated Security=True;Database=Northwind" providerName="System.Data.SqlClient"/>
</connectionStrings>
<system.web>
<anonymousIdentification enabled="true" />
<profile> //¶¨ÒåÅäÖã¨profile£©
<properties>
<add name="Theme" allowAnonymous="true" />
<add name="LastVisit" type="System.DateTime" allowAnonymous="true" />
</properties>
</profile>
<!--
<webParts> //¶¨ÒåÅäÖã¨webParts£©
<personalization defaultProvider="AspNetSqlPersonalizationProvider"/>
</webParts>
-->
<!--
Ïà¹ØÎĵµ£º
asp.net ajaxÖÐÎÄÂÒÂëµÄ½â¾ö£¿
2010-01-19 12:06
ÒÔǰûÔõô×ÐϸµÄÑо¿¹ýajax,Ö»ÊÇÓõ½Á˾ÍÖ±½ÓÄùýÀ´ÓÃ,·¢ÏÖÁËÎÊÌâÔÙÕÒ½â¾ö·½·¨.ÒÔÏÂÊÇÎÒÔÚÕÒ½â¾öÎÊÌâµÄ¹ý³ÌÖеÄÒ»µãССµÄ×ܽá.
Ò».̸AjaxµÄGetºÍPostµÄÇø±ð
Get·½Ê½:
ÓÃget·½Ê½¿É´«Ëͼòµ¥Êý¾Ý£¬µ«´óСһ°ãÏÞÖÆÔÚ1KBÏ£¬Êý¾Ý×·¼Óµ½urlÖз¢Ë ......
Asp.NetÖÐÓÐÒ»Ì×ÓëÓû§Ïà¹ØÁªµÄÊôÐÔÉèÖ㬿ÉÒÔͨ¹ýÔÚWebConfigÀïÅäÖÃÀ´Ö±½ÓʹÓã¬ËûµÄ×÷ÓÃΪ
´æ´¢ºÍʹÓÃΨһÓëÓû§¶ÔÓ¦µÄÐÅÏ¢
Õ¹ÏÖ¸öÈË»¯°æ±¾µÄWebÓ¦ÓóÌÐò
Óû§µÄΨһÉí·Ý±êʶÔÚÔٴηÃÎÊʱʶ±ðÓû§
Asp.Net ProfileÌṩµÄ¸úÓû§Ïà¹ØµÄÀàÐͶ¼ÊÇÇ¿ÀàÐÍ
Ê×ÏÈÉú³ÉÊý¾Ý¿â½Å±¾£¬Ê¹ÓÃVisual Studio 2005 ÃüÁîÌáʾ£¬ÊäÈë ......
"·þÎñÆ÷Ãû³Æ£º"+Server.MachineName;//·þÎñÆ÷Ãû³Æ
"·þÎñÆ÷IPµØÖ·£º" + Request.ServerVariables["LOCAL_ADDR"];//·þÎñÆ÷IPµØÖ·
&nbs ......
ÈÏʶASP.NETÅäÖÃÎļþWeb.config
¡¡¡¡Ò»¡¢ÈÏʶWeb.configÎļþ
¡¡¡¡Web.configÎļþÊÇÒ»¸öXMLÎı¾Îļþ£¬ËüÓÃÀ´´¢´æ ASP.NET Web Ó¦ÓóÌÐòµÄÅäÖÃÐÅÏ¢(Èç×î³£ÓõÄÉèÖÃASP.NET Web Ó¦ÓóÌÐòµÄÉí·ÝÑéÖ¤·½Ê½)£¬Ëü¿ÉÒÔ³öÏÖÔÚÓ¦ÓóÌÐòµÄÿһ¸öĿ¼ÖС£µ±Äãͨ¹ýVB.NETн¨Ò»¸öWebÓ¦ÓóÌÐòºó£¬Ä¬ÈÏÇé¿öÏ»áÔÚ¸ùĿ¼×Ô¶¯´´½¨Ò»¸öĬÈ쵀 ......
IIS 7
IIS7×ÔÉíÓжÔMVCµÄÖ§³Ö£¬²¿Êð·½·¨Í¬ÆäËûweb application»ù±¾Ïàͬ£¬ÐèҪעÒâµÄÊÇ£¬mvc 2.0 applicationÔÚHandler MappingsÀïÃæ»áÓÐMvcHttpHandler£¬Èçͼ£º
ÎÒʹÓõÄÊÇ.net 4.0£¬ÎÒ¿´ÁËÆäËû.net 2.0 µÄweb appliationϵÄHandler Mappings¶¼Ã»ÓÐÕâ¸öhandler maping¡£
×¢Ò⣺.net 3.5ÒÔÏ£¨°üÀ¨£©µÄweb application p ......