±NMemberShipªº¸ê®Æ®w«Ø¥ß¦b¦Û¤vªº¸ê®Æ®w¤W
- ©«¤l
- 26
- ¥DÃD
- 10
- ºëµØ
- 0
- ¿n¤À
- 50
- ÂI¦W
- 0
- §@·~¨t²Î
- windows XP
- ³nÅ骩¥»
- office2000
- ¾\ŪÅv
- 20
- ©Ê§O
- ¨k
- µù¥U®É¶¡
- 2011-11-1
- ³Ì«áµn¿ý
- 2018-6-13
|
±NMemberShipªº¸ê®Æ®w«Ø¥ß¦b¦Û¤vªº¸ê®Æ®w¤W
¥»©«³Ì«á¥Ñ ³Ê»h»i ©ó 2011-11-3 10:49 ½s¿è
ASP.NET 2.0¥i¥H³z¹LWeb Site Administration Tool¨Ó«Ø¥ß¨Ï¥ÎªÌµn¤Jªº¾÷¨î¡A¨Ã¥B¥i¥H¦³¸}¦âºÞ²zªº¾÷¨î¡A¤£¹L¤@¯ë¨Ï¥Îªº®ÉÔ¡A³£·|¦bWeb Site¤¤ªºApp_Data³oÓ¸ê®Æ§¨¤¤²£¥Í¤@ÓMDFªºÀɮסA³oÓÀɮ׬OSQLªº¸ê®Æ®wÀɮסCµM¦Ó¦pªG§ÚÌ»Ýn»P¦Û¤vªº¸ê®Æªí°µ¬ÛÃöªº³B²z®É¡A«o¨S¦³³o»ò®e©ö¡A²¦³º§Ų́ä¥L·|¥Î¨ì¨Ï¥ÎªÌªº¸ê®Æªí¤£·|«Ø¦b¨ºÓMDF¤¤¡A¨º»òn°µJoin´N¤£¬O¯»¤è«K¤F
¨BÆJ¤@¡G«Ø¥ß¦Û¦³ªº¸ê®Æ®w(¦pªG¤w¸g¦s¦b¬Ù²¤)
¨BÆJ¤G¡G¨Ï¥ÎAspnet_regsql.exe«Ø¥ß¬ÛÃö¸ê®Æªí
¸ÓÀɮ׫إߩó±z¹q¸£¤¤\Microsoft.NET\Framework\¤¤ªº¥Ø«eª©¥»ªº¥Ø¿ý¤U(¤pØpªº¬O¦bc:\WINDOWS\Microsoft.NET\Framework\v2.0.50727)¡A°õ¦æ«á´N·|±Ò°Ê¤@ÓºëÆF¡A¿é¤J¥D¾÷¡B³s½u¤è¦¡¡B±b¸¹¡B±K½X«á¡A¿ï¾Ü¸ê®Æ®w¡A±µµÛ´N·|§â¬ÛÃö¸ê®Æªí«Ø¥ß¦b±z©Ò¿ï¾Üªº¸ê®Æ®w¤¤¡C
¨BÆJ¤T¡G³]©wWeb.config- <connectionStrings>
- <add name="SqlServices" connectionString="Data Source=XXXXX;Initial Catalog=DBBD;Persist Security Info=True;User ID=sa;password=xxxxxx"></add>
- </connectionStrings>
- <system.web>
- <roleManager enabled="true" defaultProvider="SqlProvider" >
- <providers>
- <add
- name="SqlProvider"
- type="System.Web.Security.SqlRoleProvider"
- connectionStringName="SqlServices"
- applicationName="MyApplication"
- />
- </providers>
- </roleManager>
-
- <membership defaultProvider="SqlProvider"
- userIsOnlineTimeWindow="15">
- <providers>
- <add
- name="SqlProvider"
- type="System.Web.Security.SqlMembershipProvider"
- connectionStringName="SqlServices"
- applicationName="MyApplication"
- enablePasswordRetrieval="false"
- enablePasswordReset="true"
- requiresQuestionAndAnswer="true"
- requiresUniqueEmail="false"
- passwordFormat="Hashed"
- maxInvalidPasswordAttempts="5"
- passwordAttemptWindow="10" />
- </providers>
- </membership>
- <authentication mode="Forms" >
- <forms loginUrl="login.aspx"></forms>
- </authentication>
- </system.web>
½Æ»s¥N½X ¨BÆJ¥|¡G¦b³]©wWeb Site Administration Tool
¦¹®É¬Ý¤@¤UProviderÀ³¸Ó·|¬O«ü©wªºSqlServices¡A¦Ó«Ø¥ßªºUser,Roles¤]·|¦b±zConnectionString«ü©wªº¸ê®Æ®w¤¤«Ø¥ß¤F
¤W±ªºconfign½Õ¾ãconnectionString
¨Ì·Ó¦Û¤vªºª¬ªp½Õ¾ã |
|
|
|
|
|
|