Ò׽ؽØͼÈí¼þ¡¢µ¥Îļþ¡¢Ãâ°²×°¡¢´¿ÂÌÉ«¡¢½ö160KB

ʹÓÃASP.NETµÄȨÏÞϵͳ

1. Éú³ÉaspnetµÄȨÏÞÊý¾Ý±íºÍsp£¬Ê¹ÓÃ.net 2.0µÄÃüÁîÈçÏ£º
C:\WINDOWS\Microsoft.NET\Framework\v2.0.50727>aspnet_regsql -W
ʹÓÃ-W²ÎÊýµ÷³öÁ¬½ÓÊý¾Ý¿âÏòµ¼£¬¸ù¾ÝÏòµ¼Éú³ÉÊý¾Ý¿âÊý¾Ý¡£
2. ÔÚweb.config¸ü¸ÄÑéÖ¤·½Ê½²¢Ìí¼Óproviders
<configuration>
<connectionStrings>
<add name="dbConnString" connectionString="<Your Database Connection String>" />
</connectionStrings>
<system.web>
<authentication mode="Forms" >
<forms loginUrl="login.aspx"
name=".ASPXFORMSAUTH" />
</authentication>
<authorization>
<deny users="?" />
</authorization>
<membership defaultProvider="SqlProvider" userIsOnlineTimeWindow="15">
<providers>
<clear />
<add
name="SqlProvider"
type="System.Web.Security.SqlMembershipProvider"
connectionStringName="dbConnString"
applicationName="MyApplication"
enablePasswordRetrieval="false"
enablePasswordReset="true"
requiresQuestionAndAnswer="true"
requiresUniqueEmail="true"
passwordFormat="Hashed" />
</providers>
</membership>
profile>
<providers>
<add name="AspNetProfileProvider" connectionStringName="dbConnString" applicationName="/" type="System.Web.Profile.SqlProfileProvider" />
</providers>
</profile>
<roleManager enabled="true" defaultProvider="AspNetRoleProvider">
<providers>
<clear />
<add connectionStringName="dbConnString" applicationName="/"
name="AspNetRoleProvider" type="System.Web.Security.SqlRoleProvider" />
</providers>
</roleManager>
</system.web>
</configuration>

3. ͨ¹ýWeb Site Administratio


Ïà¹ØÎĵµ£º

ÈÏʶASP.NETÅäÖÃÎļþWeb.config

Ò»¡¢ÈÏʶWeb.configÎļþ
Web.configÎļþÊÇÒ»¸öXMLÎı¾Îļþ£¬ËüÓÃÀ´´¢´æ ASP.NET Web Ó¦ÓóÌÐòµÄÅäÖÃÐÅÏ¢£¨Èç×î³£ÓõÄÉèÖÃASP.NET Web Ó¦ÓóÌÐòµÄÉí·ÝÑéÖ¤·½Ê½£©£¬Ëü¿ÉÒÔ³öÏÖÔÚÓ¦ÓóÌÐòµÄÿһ¸öĿ¼ÖС£µ±Äãͨ¹ýVB.NETн¨Ò»¸öWebÓ¦ÓóÌÐòºó£¬Ä¬ÈÏÇé¿öÏ»áÔÚ¸ùĿ¼×Ô¶¯´´½¨Ò»¸öĬÈϵÄ
Web.configÎļþ£¬°üÀ¨Ä¬ÈϵÄÅäÖÃÉèÖà ......

ÅäÖÃASP.NETƽ̨ʱÓöµ½µÄ¡°·ÃÎÊIISÔªÊý¾Ý¿âʧ°Ü¡±

Ô­Òò¾ÍÊÇIISºÍ.net Framework2.0°²×°Ë³Ðò·´ÁË£¬ÒòΪÎÒÏÈÇ°Ôø¾­×°¹ýVisualStudio2005£¬ËùÒÔϵͳÀïÏÈ°²×°ÁË.net Framework2.0£¬¶øÕâÑùºóÀ´×°¹ýIISºó£¬.net Frameworkδע²áÏà¹Ø×é¼þ£¬²»ÄܶÔIIS×ö³öÐ޸ģ¬¾Í»á³öÏÖÕâÖÖÇé¿ö£¡
½â¾ö·½·¨£º
µ½C:\WINDOWS\Microsoft.NET\Framework\v2.0.50727ÖÐÕÒ£¬Óиö¹¤¾ß½Ð aspnet_regiis.exe ......

ASP.NETµÄWeb.configÎļþ

Web.configÎļþÊÇÒ»¸ö±ê×¼µÄXMLÎĵµ£¬ËùÓеÄÅäÖÃÐÅÏ¢¶¼Î»ÓÚ<configuration>±ê¼ÇÄÚ¡£<system.web>±ê¼ÇÄÚÔò°üº¬Á˺ËÐÄASP.NETÅäÖÃÉèÖá£Óû§¿ÉÒÔÔÚVisual Studio.NETÖдò¿ªWeb.configÀ´²é¿´ºÍ±à¼­ËüµÄÄÚÈÝ£¬Õâ¸öÎļþÖаüº¬ÁË´óÁ¿µÄ×¢ÊÍÐÅÏ¢£¬Óû§¿ÉÒÔ²ÎÕÕѧϰ¡£ÏÂÃæ½éÉܼ¸¸ö³£Óõıê¼Ç¡£
1. <appSettings> ......

ÂÛASP.NETÉè¼ÆÖеÄÐÔÄÜÓÅ»¯ÎÊÌâ

¹ØÓÚÊý¾Ý´¦ÀíÏà¹ØµÄÓÅ»¯  
   
  Ò»¡¢                           SqlDataReadºÍDatasetµÄÑ¡Ôñ  
   
  SqldatareadÓŵ㣺¶ÁÈ¡Êý¾Ý·Ç³£¿ì¡£Èç¹û¶Ô·µ»ØµÄÊý¾Ý²»Ðè×ö´óÁ¿´¦ÀíµÄÇé¿öÏ£ ......

ASP.netµ¯³öÏûÏ¢¶Ô»°¿òµÄ·½·¨

ÎÒÃÇÔÚASP.NET³ÌÐòµÄ¿ª·¢¹ý³ÌÖУ¬³£³£ÐèÒªÏòÓû§¸ø³öÌáʾÐÅÏ¢£¬±ÈÈçÊÇ·ñ“²Ù×÷³É¹¦”£¬“È·¶¨”»¹ÊÇ“È¡Ïû”²Ù×÷¡£
   
    (1) µã»÷Ò³ÃæÉϵİ´Å¥£¬µ¯³öÒ»¸ö¶Ô»°¿òÌáʾÊÇ“È·¶¨”»¹ÊÇ“È¡Ïû”²Ù×÷£¬ÎÒÃDzÉÓÃÔÚ°´Å¥ÖÐÌí¼ÓÊôÐÔÀ´Íê³É£º
......
© 2009 ej38.com All Rights Reserved. ¹ØÓÚE½¡ÍøÁªÏµÎÒÃÇ | Õ¾µãµØͼ | ¸ÓICP±¸09004571ºÅ