锘??xml version="1.0" encoding="utf-8" standalone="yes"?>亚洲精品国产高清嫩草影院,亚洲av日韩av不卡在线观看,亚洲精品~无码抽插http://www.tkk7.com/vls/浣庤皟鐨勭編涓?/description>zh-cnFri, 09 May 2025 21:55:07 GMTFri, 09 May 2025 21:55:07 GMT60Using check-case-insensitive.py on Windowshttp://www.tkk7.com/vls/archive/2008/09/02/226466.htmlvlsvlsTue, 02 Sep 2008 10:31:00 GMThttp://www.tkk7.com/vls/archive/2008/09/02/226466.htmlhttp://www.tkk7.com/vls/comments/226466.htmlhttp://www.tkk7.com/vls/archive/2008/09/02/226466.html#Feedback0http://www.tkk7.com/vls/comments/commentRss/226466.htmlhttp://www.tkk7.com/vls/services/trackbacks/226466.htmlUsing check-case-insensitive.py on Windows

Do not use this script anymore, use case-insensitive.py which is far more efficient.

Get these files:

Then:

  • Install Subversion 1.2.3
  • Install Python 2.3.5
  • Unzip svn-win32-1.2.3_py.zip
  • Copy the unzipped directory svn-win32-1.2.3 to inside directory C:\Python23\Lib\site-packages\
  • Copy all DLLS from C:\Program Files\Subversion\bin\*.dll to C:\Python23\Lib\site-packages\svn-win32-1.2.3\python\libsvn\
  • Copy the file check-case-insensitive.py to directory c:\svnrepo\hooks\
  • Edit definition of SVNLIB_DIR in file check-case-insensitive.py to
    SVNLIB_DIR = r"C:/Python23/Lib/site-packages/svn-win32-1.2.3/python/"
  • Add/Create the file c:\svnrepo\hooks\pre-commit.bat containing these lines:
    c:\python23\python c:\svnrepo\hooks\check-case-insensitive.py %1 %2
        if errorlevel 1 goto :ERROR
        exit 0
        :ERROR
        echo Error found in commit 1>&2
        exit 1
        

Test by checking out a repo to two different directories

Create, add, and commit a file with an UPPERCASE name in first directory

Create, add, and commit a file with a lowercase name in second directory

The second commit will fail with this message:

Adding         sales\sale1.cpp
Transmitting file data .svn: Commit failed (details follow):
svn: 'pre-commit' hook failed with error output:
Case conflict: svnrepo/acme/trunk/sales/sale1.cpp
Error found in commit

Delete the UPPERCASE file with an "svn rm svn://.." command

The second commit can now go through

Thanks to xnooby for working this out and posting these instructions to the mailing list.



vls 2008-09-02 18:31 鍙戣〃璇勮
]]>
[杞澆]婊戠Щ鏁堟灉http://www.tkk7.com/vls/archive/2008/05/17/201028.htmlvlsvlsFri, 16 May 2008 17:46:00 GMThttp://www.tkk7.com/vls/archive/2008/05/17/201028.htmlhttp://www.tkk7.com/vls/comments/201028.htmlhttp://www.tkk7.com/vls/archive/2008/05/17/201028.html#Feedback0http://www.tkk7.com/vls/comments/commentRss/201028.htmlhttp://www.tkk7.com/vls/services/trackbacks/201028.html闃呰鍏ㄦ枃

vls 2008-05-17 01:46 鍙戣〃璇勮
]]>
js涓樉寮忓0鏄庣殑閲嶈鎬?/title><link>http://www.tkk7.com/vls/archive/2008/05/11/199808.html</link><dc:creator>vls</dc:creator><author>vls</author><pubDate>Sun, 11 May 2008 03:23:00 GMT</pubDate><guid>http://www.tkk7.com/vls/archive/2008/05/11/199808.html</guid><wfw:comment>http://www.tkk7.com/vls/comments/199808.html</wfw:comment><comments>http://www.tkk7.com/vls/archive/2008/05/11/199808.html#Feedback</comments><slash:comments>1</slash:comments><wfw:commentRss>http://www.tkk7.com/vls/comments/commentRss/199808.html</wfw:commentRss><trackback:ping>http://www.tkk7.com/vls/services/trackbacks/199808.html</trackback:ping><description><![CDATA[<div style="border-right: #cccccc 1px solid; padding-right: 5px; border-top: #cccccc 1px solid; padding-left: 4px; font-size: 13px; padding-bottom: 4px; border-left: #cccccc 1px solid; width: 98%; word-break: break-all; padding-top: 4px; border-bottom: #cccccc 1px solid; background-color: #eeeeee"><span style="color: #0000ff">function</span><span style="color: #000000"> b()<br /> {<br />     i </span><span style="color: #000000">=</span><span style="color: #000000"> </span><span style="color: #000000">3</span><span style="color: #000000">;<br /> }<br /> <br /> </span><span style="color: #0000ff">function</span><span style="color: #000000"> a()<br /> {<br />     i </span><span style="color: #000000">=</span><span style="color: #000000"> </span><span style="color: #000000">1</span><span style="color: #000000">;<br />     b();<br />     alert(</span><span style="color: #000000">"</span><span style="color: #000000">i=</span><span style="color: #000000">"</span><span style="color: #000000">+</span><span style="color: #000000">i);<br /> }<br /> a();</span></div> <br /> 鐪嬩笂渚嬩唬鐮侊紝a()鍜宐()閲岄潰鐨勫彉閲廼閮芥病鏈変嬌鐢╲ar澹版槑錛屾渶緇坅lert緇撴灉浼氭槸3錛侊紒錛?<img src ="http://www.tkk7.com/vls/aggbug/199808.html" width = "1" height = "1" /><br><br><div align=right><a style="text-decoration:none;" href="http://www.tkk7.com/vls/" target="_blank">vls</a> 2008-05-11 11:23 <a href="http://www.tkk7.com/vls/archive/2008/05/11/199808.html#Feedback" target="_blank" style="text-decoration:none;">鍙戣〃璇勮</a></div>]]></description></item><item><title>鑷畾涔塎embershipProvider閰嶅悎Asp.net 2.0 Login鎺т歡http://www.tkk7.com/vls/archive/2008/02/29/183019.htmlvlsvlsFri, 29 Feb 2008 10:51:00 GMThttp://www.tkk7.com/vls/archive/2008/02/29/183019.htmlhttp://www.tkk7.com/vls/comments/183019.htmlhttp://www.tkk7.com/vls/archive/2008/02/29/183019.html#Feedback0http://www.tkk7.com/vls/comments/commentRss/183019.htmlhttp://www.tkk7.com/vls/services/trackbacks/183019.html杞嚜錛?a >http://www.programbbs.com/doc/2988.htm

杞悜Asp.net 2.0錛屽鏋滃崟鍗曠湅Asp.net 2.0鐨勪緥瀛愬拰SDK錛岀浉淇′綘涓瀹氬緋葷粺鑷甫鐨凩ogin鎺т歡鏈夋瘮杈冩繁鍒葷殑鍗拌薄銆侫sp.Net 2.0鐨凩ogin鎺т歡涓嶇敤浣犲啓涓琛屾嫻嬬敤鎴瘋緭鍏ユ槸鍚﹀悎娉曠殑紼嬪簭浠g爜鍙婄浉鍏蟲煡璇㈡暟鎹簱鐨凷QL鑴氭湰錛屽彧闇鎶婄浉搴旂殑鎺т歡鎷栧埌Web琛ㄥ崟涓紝鍗沖彲瀹屾垚鐢ㄦ埛鐧婚檰錛屽垱寤虹敤鎴鳳紝鐢ㄦ埛瑙掕壊綆$悊錛屼慨鏀瑰瘑鐮佺敤鎴瘋緇嗘儏鍐碉紝鍙栧洖瀵嗙爜絳夊姛鑳芥ā鍧椼?br /> 銆銆Login鎺т歡鐪嬩笂鍘昏繎涔庡畬緹庯紝鑰屾垜浠幇鍦ㄦ墜澶存濂芥潵浜嗕竴涓」鐩姹傞噰鐢ˋsp.net 2.0寮鍙戯紝鑰岃欏圭洰涔熻姹傛湁鐧婚檰錛岀敤鎴風鐞嗭紝鏉冮檺綆$悊錛屼慨鏀瑰瘑鐮佺瓑鍔熻兘錛岀浉淇$粷澶у鏁頒漢閮戒細鑰冭檻浣跨敤Login鎺т歡鏉ュ揩閫熸悶瀹氳繖浜涜姹傘備簬鏄箮錛屽ぇ瀹舵嬁鍑轟互鍓嶇殑鏁欏渚嬪瓙錛岃瘯鐫鍒嗘瀽杈冩繁涓灞傜殑浠g爜錛岀湅鐪嬭鍦ㄥ摢閲屽Login鎺т歡淇敼涓鐣紝璁╁畠婊¤凍鎵嬪ご欏圭洰宸茶璁″ソ鐨勬暟鎹簱琛ㄧ粨鏋勩傜粨鏋滃彂鐜幫紝闄や簡aspx鏂囦歡閲岄潰鍙互瀵筁ogin鎺т歡鐨勫瑙傦紝鎻愮ず鏂囧瓧鍙互鑷畾涔夊錛宑s鏂囦歡涓劊鏄壘涓嶅埌涓琛屼唬鐮侊紝鐒跺悗緇х畫緲籑SDN鍜孏oogle錛岀粓浜庣煡閬擄紝瑕佸湪鑷繁鐨勯」鐩腑鐩存帴浣跨敤緋葷粺鑷甫鐨凩ogin鎺т歡錛岄渶瑕佸仛錛掗」淇敼宸ヤ綔錛?br /> 銆銆1銆佹牴鎹綘閫夌敤鐨勬暟鎹簱錛屼慨鏀筗eb.config涓浉搴旂殑connectionStrings銆傜郴緇熼粯璁ょ殑鏁版嵁搴撴槸SQL Server 2005 Express錛屽鏋滄垜浠殑鏁版嵁搴撴槸Access/SQL2000/2005/Oracle錛屽綋鐒惰澶ф敼涓鐣簡銆?br /> 銆銆2銆佹敼瀹學eb.config榪樹笉澶燂紝鎴戜滑榪樺緱鎵цC:\WINNT\Microsoft.NET\Framework\v2.0.507\aspnet_sqlreg.exe娉ㄥ唽浣犵殑sql server錛岃紼嬪簭鐨勪綔鐢ㄦ槸鍦ㄤ綘鐨勬暟鎹簱涓緩绔婰ogin鎺т歡闇瑕佺殑鎵鏈夎祫婧?澶х害鏈変笂鍗佷釜琛紝涓夊崄澶氭潯瀛樺偍榪囩▼錛屼笂鍗佷釜瑙嗗浘絳夌瓑)錛屽鏋滀綘浣跨敤鐨勬槸access/orcale錛屾垨鑰呮槸鍏朵粬鏍煎紡鐨勬暟鎹簱錛岄偅浣犺嚜宸卞幓Google鐩稿簲鐨凷QL鑴氭湰鍚с?br /> 銆銆OK錛屾兂鍒癓ogin鎺т歡甯綘鑺傜渷鐨勫伐浣滈噺錛岀浉淇′笉灝戜漢閮戒細鍜潃鐗欏畬鎴愪笂闈㈢殑錛掗」宸ヤ綔銆傚畬鎴愪笂闈紥欏瑰伐浣滃悗錛屽ぇ瀹舵帴鐫璇婚」鐩渶姹傦紝鍙戠幇鏈夌敤鎴風粍綆$悊鍜屾潈闄愮鐞嗭紝騫稿ソ寮鍙戣祫鏂欎笂鎻愬埌Login鎺т歡闆嗘垚鐨凴ole瑙掕壊綆$悊妯″潡姝eソ涓庝箣瀵瑰簲錛屼笉榪囦互鍚庢垜浠垱寤轟竴涓敤鎴峰悗錛岃繕瑕佸啀榪涘叆涓涓〉闈㈢粰鐢ㄦ埛閫夋嫨鎵灞炵敤鎴風粍錛屽綋鐒訛紝閲囩敤Role鐨勮瘽錛屾垜浠彲浠ヨ瀹氫竴涓敤鎴峰悓鏃跺睘浜庡涓敤鎴風粍錛岃矊浼煎姛鑳藉緢寮哄ぇ鍝熴傜戶緇欏圭洰闇姹傦紝鍙戠幇榪欎簺欏圭洰鐨勭敤鎴峰璞¤繕鏈変笉灝慙ogin鎺т歡涓病鏈夌殑灞炴ц淇濆瓨錛屽洖澶村啀鍘葷炕MSDN錛屽彂鐜癙rofile鍙互甯垜浠В鍐寵繖涓棶棰樸?br /> 銆銆鍡紝闄ゅ紑浣跨敤Login鎺т歡錛岃繍琛宎spnet_sqlreg.exe甯垜浠緩绔嬬殑涓婂崄涓〃錛屼笁鍗佸鏉″瓨鍌ㄨ繃紼嬶紝涓婂崄涓鍥劇瓑錛屾垜浠啀涓嶇敤寤鴻〃淇濆瓨鐢ㄦ埛鐨勪換浣曚俊鎭簡錛屼互鍚庢垜浠彧鐢ㄥ湪Web.config鏂囦歡鍜岀浉搴旂殑cs浠g爜涓姞涓奟ole鍜孭rofile鐨勫鐞嗕唬鐮侊紝鍗沖彲瀹屾垚璇ラ」鐩殑鐧婚檰錛岀敤鎴風鐞嗭紝瀵嗙爜淇敼鍔熻兘銆傜畻綆楁姇鍏ユ煡MSDN錛孏oogle鍙婁慨鏀筗eb.config鏂囦歡鍜岀浉搴旂殑cs浠g爜鐨勬椂闂達紝鐩鎬俊鍘熸潵鑷繁鍐欒繃鑷畾涔塋ogin鎺т歡鐨勬湅鍙嬪凡緇忓噯澶囧彂瑾撳啀涔熶笉紕癆sp.net 2.0鑷甫鐨凩ogin鎺т歡浜嗐?br /> 銆銆鍏跺疄錛屾垜浠畬鍏ㄦ湁鏇寸畝媧侀氱敤鐨勫姙娉曟潵閲嶇敤Asp.net 2.0鑷甫鐨凩ogin鎺т歡錛屽嵆鍙敤瀹冩渶鍩烘湰鐨勭櫥闄嗗強淇敼瀵嗙爜鍔熻兘錛岃繖錛掍釜鍩烘湰鍔熻兘鐓ф棫浠?a >宸ュ叿綆辨嫋涓?a >鎺т歡鍑烘潵寰Web琛ㄥ崟涓婁竴鎵斿嵆鍙紝涓琛屼唬鐮侀兘涓嶅鍔犮傚叾浠栫殑鐢ㄦ埛/鐢ㄦ埛緇勭鐞嗭紝鏉冮檺綆$悊涓嶇敤鎵笂Login鎺т歡錛屾暟鎹簱鎯崇敤浠涔堜駭鍝佸氨鐢ㄤ粈涔堜駭鍝侊紝mysql/db2/infomax鏉ヨ呬笉鎷?琛ㄧ粨鏋勬兂鎬庝箞璁捐灝辨庝箞璁捐錛孍-R鍥撅紝UML鍥劇洿鎺ョ収鎼氨鎴?鐢ㄦ埛/鐢ㄦ埛緇勭鐞嗗拰鏉冮檺綆$悊妯″潡鎯蟲庝箞瑙勫畾灝辨庝箞瑙勫畾錛岃嚜鍏寵仈錛屾棤闄愬垎綰ч兘琛屻傛諱箣涓鍙ヨ瘽錛氳Login鎺т歡闄勫甫鐨勪笂鍗佷釜琛紝涓夊崄澶氭潯瀛樺偍榪囩▼錛屼笂鍗佷釜瑙嗗浘瑙侀鍘誨惂銆?br /> 銆銆涓嬮潰緇嗚瀹炵幇鏂規硶錛孉sp.net 2.0鐨凩ogin鎺т歡鐢ㄥ埌浜?涓被鏉ヤ粠鏁版嵁搴撲腑鑾峰彇鐩稿簲鐨勬暟鎹紝鍒嗗埆鏄疢emberShipprovider錛孯oleProvider鍙奝rofileProvider錛岀郴緇熻嚜甯︾殑榪?涓被鐨勬柟娉曠殑浠g爜琚殣钘忚搗鏉ヤ簡錛屽敖綆℃病鍏紑錛屼絾瀹為檯涓婂氨鏄嬌鐢ㄦ垜涓婇潰涓鐩村康鍙ㄧ殑涓婂崄涓〃錛屼笁鍗佸鏉″瓨鍌ㄨ繃紼嬶紝涓婂崄涓鍥俱備笉綆′綘鐢ㄤ粈涔堟暟鎹簱錛屽彧瑕佹兂浣跨敤Login鎺т歡鐨勬墍鏈夊姛鑳斤紝蹇呴』淇濊瘉璇ユ暟鎹簱涓湁涓庝箣瀵瑰簲鐨勫崄鏉ヤ釜琛紝涓夊崄澶氭潯瀛樺偍榪囩▼錛屽崄鏉ヤ釜瑙嗗浘銆?br /> 銆銆褰撶劧錛孧S鐨勬灦鏋勮璁″笀涔熶笉鏄煇浜涗漢鎯寵薄涓殑閭d箞鏃犺兘錛屼笂闈㈢殑榪欎笁涓被鍏跺疄閮芥槸鎶借薄綾伙紝緋葷粺鐨凩ogin鎺т歡瀹為檯璋冪敤鐨勬槸浠庤繖錛撲釜綾繪淳鐢熷嚭鏉ョ殑閽堝SQL Server2000/2005鐨勬暟鎹搷浣滅被錛岀伒媧葷殑鏋舵瀯璁捐姝f槸鍦ㄨ繖閲屼綋鐜板嚭鏉ャ傛棦鐒禡emberShipProvider錛孯oleProvider鍙奝rofileProvider涓夊ぇ澶存槸鎶借薄綾伙紝閭d箞鎴戜滑瀹屽叏鍙互鑷畾涔変竴涓彧閽堝鐢ㄦ埛琛ㄧ殑username鍙妏assword錛掍釜鍒楁搷浣滅殑MemberShipprovider媧劇敓綾誨嚭鏉ワ紝閲嶅啓鐧婚檰楠岃瘉錛屼慨鏀瑰瘑鐮佷互鍙婂叾璋冪敤鐨勬柟娉曪紝鐒跺悗鍦╓eb.config涓妸membership鐨勬彁渚涜呮寚瀹氫負鎴戜滑鑷繁鍐欑殑MemberShipprovider媧劇敓綾伙紝榪欐牱鎴戜滑灝卞彲浠ュ拰鍘熸潵涓鏍鳳紝鎶奓ogin鎺т歡鐨勭櫥闄嗗拰淇敼瀵嗙爜錛掍釜瀛?a >鎺т歡寰Web琛ㄥ崟涓婁竴鎷栦簡浜嬨?br /> 銆銆涓嬮潰寮濮嬭創浠g爜錛屾噿鐨勬繁絀剁殑鏈嬪弸浠彲浠ョ洿鎺ユ妸鎴戠粰鍑虹殑cs浠g爜璐村洖鍘伙紝寤轟釜cs鏂囦歡鏀懼埌App_Code鐩綍涓嬶紝鐒跺悗鎸夌収鍚庨潰鐨刉eb.config淇敼鐩稿簲鐨刢onnectionStrings鍜宮embership鍗沖彲錛屼互鍚庝換浣曢」鐩鍒╃敤Asp.net 2.0鐨凩ogin鎺т歡鐨勭櫥闄嗗拰淇敼瀵嗙爜閮芥槸榪欐牱鐓ц懌鑺︾敾鐡紝澶熷偦鐡滃惂銆?br />

  1. using System;   
  2. using System.Data;   
  3. using System.Configuration;   
  4. using System.Data.SqlClient;   
  5. using System.Collections.Generic;   
  6. using System.Text.RegularExpressions;   
  7. using System.Data.SqlTypes;   
  8. using System.Web;   
  9. using System.Web.Security;   
  10.   
  11. /**//**//**//// <summary>   
  12. /// MyMemberShip 鐨勬憳瑕佽鏄?  
  13. /// </summary>   
  14. public class MyMemberShip : MembershipProvider   
  15. {   
  16.     private bool _requiresQuestionAndAnswer;   
  17.     private int _minRequiredPasswordLength;    
  18.     public MyMemberShip()   
  19.     {   
  20.         //   
  21.         // TODO: 鍦ㄦ澶勬坊鍔犳瀯閫犲嚱鏁伴昏緫   
  22.         //   
  23.     }   
  24.     public override string ApplicationName   
  25.     {   
  26.         get  
  27.         {   
  28.             throw new Exception("The method or operation is not implemented.");   
  29.         }   
  30.         set  
  31.         {   
  32.             throw new Exception("The method or operation is not implemented.");   
  33.         }   
  34.     }   
  35.     public override void Initialize(string name, System.Collections.Specialized.NameValueCollection config)   
  36.     {   
  37.   
  38.         if (config["requiresQuestionAndAnswer"].ToLower() == "true")   
  39.             _requiresQuestionAndAnswer = true;   
  40.         else  
  41.             _requiresQuestionAndAnswer = false;   
  42.         int.TryParse(config["minPasswordLength"], out _minRequiredPasswordLength);   
  43.         base.Initialize(name, config);   
  44.     }   
  45.     public override bool ChangePassword(string username, string oldPassword, string newPassword)   
  46.     {   
  47.         using (SqlConnection connection = new SqlConnection(DBBase.DBConnectionString))   
  48.         {   
  49.             SqlCommand command = new SqlCommand();   
  50.             command.CommandText = "update [User] set user_pwd=@newpwd where user_name=@name and user_pwd=@oldpwd";   
  51.             command.Parameters.AddWithValue("@name", username);   
  52.             command.Parameters.AddWithValue("@oldpwd", CryptUtil.GetStringHashValue1(StringUtil.SqlEscape(oldPassword)));   
  53.             command.Parameters.AddWithValue("@newpwd", CryptUtil.GetStringHashValue1(StringUtil.SqlEscape(newPassword)));   
  54.             command.Connection = connection;   
  55.             connection.Open();   
  56.             return (int)command.ExecuteNonQuery() > 0 ? true : false;   
  57.         }   
  58.         //throw new Exception("The method or operation is not implemented.");   
  59.     }   
  60.   
  61.     public override bool ChangePasswordQuestionAndAnswer(string username, string password, string newPasswordQuestion, string newPasswordAnswer)   
  62.     {   
  63.         throw new Exception("The method or operation is not implemented.");   
  64.     }   
  65.   
  66.     public override MembershipUser CreateUser(string username, string password, string email, string passwordQuestion, string passwordAnswer, bool isApproved, object providerUserKey, out MembershipCreateStatus status)   
  67.     {   
  68.         throw new Exception("The method or operation is not implemented.");   
  69.     }   
  70.   
  71.     public override bool DeleteUser(string username, bool deleteAllRelatedData)   
  72.     {   
  73.         throw new Exception("The method or operation is not implemented.");   
  74.     }   
  75.   
  76.     public override bool EnablePasswordReset   
  77.     {   
  78.         get { throw new Exception("The method or operation is not implemented."); }   
  79.     }   
  80.   
  81.     public override bool EnablePasswordRetrieval   
  82.     {   
  83.         get { throw new Exception("The method or operation is not implemented."); }   
  84.     }   
  85.   
  86.     public override MembershipUserCollection FindUsersByEmail(string emailToMatch, int pageIndex, int pageSize, out int totalRecords)   
  87.     {   
  88.         throw new Exception("The method or operation is not implemented.");   
  89.     }   
  90.   
  91.     public override MembershipUserCollection FindUsersByName(string usernameToMatch, int pageIndex, int pageSize, out int totalRecords)   
  92.     {   
  93.         throw new Exception("The method or operation is not implemented.");   
  94.     }   
  95.   
  96.     public override MembershipUserCollection GetAllUsers(int pageIndex, int pageSize, out int totalRecords)   
  97.     {   
  98.         throw new Exception("The method or operation is not implemented.");   
  99.     }   
  100.   
  101.     public override int GetNumberOfUsersOnline()   
  102.     {   
  103.         throw new Exception("The method or operation is not implemented.");   
  104.     }   
  105.   
  106.     public override string GetPassword(string username, string answer)   
  107.     {   
  108.         throw new Exception("The method or operation is not implemented.");   
  109.     }   
  110.   
  111.     public override MembershipUser GetUser(string username, bool userIsOnline)   
  112.     {   
  113.         DateTime myDate = DateTime.Today;   
  114.         MembershipUser user = new MembershipUser(   
  115.         Name, // Provider name   
  116.         username, // Username   
  117.         null// providerUserKey   
  118.         bobcy@21cn.com, // Email   
  119.         String.Empty, // passwordQuestion   
  120.         String.Empty, // Comment   
  121.         true// isApproved   
  122.         false// isLockedOut   
  123.         DateTime.Now, // creationDate   
  124.         DateTime.Now, // lastLoginDate   
  125.         DateTime.Now, // lastActivityDate   
  126.         DateTime.Now, // lastPasswordChangedDate   
  127.         new DateTime(1980, 1, 1) // lastLockoutDate   
  128.         );   
  129.         return user;    
  130.     }   
  131.   
  132.     public override MembershipUser GetUser(object providerUserKey, bool userIsOnline)   
  133.     {   
  134.         throw new Exception("The method or operation is not implemented.");   
  135.     }   
  136.   
  137.     public override string GetUserNameByEmail(string email)   
  138.     {   
  139.         throw new Exception("The method or operation is not implemented.");   
  140.     }   
  141.   
  142.     public override int MaxInvalidPasswordAttempts   
  143.     {   
  144.         get { throw new Exception("The method or operation is not implemented."); }   
  145.     }   
  146.   
  147.     public override int MinRequiredNonAlphanumericCharacters   
  148.     {   
  149.         get { return 0; }   
  150.     }   
  151.   
  152.     public override int MinRequiredPasswordLength   
  153.     {   
  154.         get { return _minRequiredPasswordLength; }    
  155.     }   
  156.   
  157.     public override int PasswordAttemptWindow   
  158.     {   
  159.         get { throw new Exception("The method or operation is not implemented."); }   
  160.     }   
  161.   
  162.     public override MembershipPasswordFormat PasswordFormat   
  163.     {   
  164.         get { throw new Exception("The method or operation is not implemented."); }   
  165.     }   
  166.   
  167.     public override string PasswordStrengthRegularExpression   
  168.     {   
  169.         get { throw new Exception("The method or operation is not implemented."); }   
  170.     }   
  171.   
  172.     public override bool RequiresQuestionAndAnswer   
  173.     {   
  174.         get { return _requiresQuestionAndAnswer; }   
  175.     }   
  176.   
  177.     public override bool RequiresUniqueEmail   
  178.     {   
  179.         get { throw new Exception("The method or operation is not implemented."); }   
  180.     }   
  181.   
  182.     public override string ResetPassword(string username, string answer)   
  183.     {   
  184.         throw new Exception("The method or operation is not implemented.");   
  185.     }   
  186.   
  187.     public override bool UnlockUser(string userName)   
  188.     {   
  189.         throw new Exception("The method or operation is not implemented.");   
  190.     }   
  191.   
  192.     public override void UpdateUser(MembershipUser user)   
  193.     {   
  194.         throw new Exception("The method or operation is not implemented.");   
  195.     }   
  196.   
  197.     public override bool ValidateUser(string username, string password)   
  198.     {   
  199.         using (SqlConnection connection = new SqlConnection(DBBase.DBConnectionString))   
  200.         {   
  201.             SqlCommand command = new SqlCommand();   
  202.             command.CommandText = "select count(0) from [User] where user_name=@name and user_pwd=@pwd";   
  203.             command.Parameters.AddWithValue("@name", username);   
  204.             command.Parameters.AddWithValue("@pwd", password);   
  205.             command.Connection = connection;   
  206.             connection.Open();   
  207.             return ((int)command.ExecuteScalar()) > 0 ? true : false;   
  208.         }   
  209.     }   
  210. }  

Web.Config鐨刴embership鑺傝繖鏍峰啓錛宑onnectionStrings鍜屾暟鎹簱鏈夊叧錛屼笉鍚岀殑鏁版嵁搴撳樊鍒緢澶э紝澶у鑷繁Google錛屾垜灝變笉鍒楀嚭鏉ヤ簡銆?br />
<membership defaultProvider="MyMemberShip">
            
<providers>
                
<clear/>
                
<add name="MyMemberShip" type="MyMemberShip" requiresQuestionAndAnswer="false" connectionString="AdminSqlServer" minRequiredNonalphanumericCharacters="0" />
            
</providers>
        
</membership>

濡傛灉鎴戜滑鎯沖湪鐢ㄦ埛楠岃瘉鐧婚檰鎴愬姛鍚庡仛涓浜涢澶栫殑澶勭悊錛屽彲浠ョ粰鐧婚檰鎺т歡鐨勭櫥闄嗘寜閽坊鍔犱竴涓簨浠訛紝鐩稿簲鐨勪唬鐮佸涓嬶細
protected void Login1_Authenticate(object sender, AuthenticateEventArgs e)
    
{
        
if (Membership.ValidateUser(Login1.UserName, Login1.Password))
        
{
            
//榪欓噷娣誨姞浣犵殑棰濆澶勭悊浠g爜錛屽Session,login鏃ヨ嚦絳夌瓑
            e.Authenticated = true;
        }

    }



vls 2008-02-29 18:51 鍙戣〃璇勮
]]>
ASP.net 鐨勫悗鍙板鐞嗘妧鏈?/title><link>http://www.tkk7.com/vls/archive/2008/02/28/182659.html</link><dc:creator>vls</dc:creator><author>vls</author><pubDate>Thu, 28 Feb 2008 05:28:00 GMT</pubDate><guid>http://www.tkk7.com/vls/archive/2008/02/28/182659.html</guid><wfw:comment>http://www.tkk7.com/vls/comments/182659.html</wfw:comment><comments>http://www.tkk7.com/vls/archive/2008/02/28/182659.html#Feedback</comments><slash:comments>0</slash:comments><wfw:commentRss>http://www.tkk7.com/vls/comments/commentRss/182659.html</wfw:commentRss><trackback:ping>http://www.tkk7.com/vls/services/trackbacks/182659.html</trackback:ping><description><![CDATA[     鎽樿: ASP.net 鐨勫悗鍙板鐞嗘妧鏈?nbsp; 杞嚜錛歨ttp://www.chenjiliang.com/Article/View.aspx?ArticleID=3636&TypeID=5 浣跨敤鏂規硶錛?System.Threading.TimerCallback t=new System.Threading.TimerCallback ...  <a href='http://www.tkk7.com/vls/archive/2008/02/28/182659.html'>闃呰鍏ㄦ枃</a><img src ="http://www.tkk7.com/vls/aggbug/182659.html" width = "1" height = "1" /><br><br><div align=right><a style="text-decoration:none;" href="http://www.tkk7.com/vls/" target="_blank">vls</a> 2008-02-28 13:28 <a href="http://www.tkk7.com/vls/archive/2008/02/28/182659.html#Feedback" target="_blank" style="text-decoration:none;">鍙戣〃璇勮</a></div>]]></description></item><item><title>firefox涓媔nsertRowhttp://www.tkk7.com/vls/archive/2008/02/12/179652.htmlvlsvlsMon, 11 Feb 2008 18:14:00 GMThttp://www.tkk7.com/vls/archive/2008/02/12/179652.htmlhttp://www.tkk7.com/vls/comments/179652.htmlhttp://www.tkk7.com/vls/archive/2008/02/12/179652.html#Feedback1http://www.tkk7.com/vls/comments/commentRss/179652.htmlhttp://www.tkk7.com/vls/services/trackbacks/179652.html ie6  firefox opera insertRow 鏀寔, 榛樿鍙傛暟-1,榛樿娣誨姞鍒版渶鍚?/td> 鏀寔錛?nbsp;浣嗕笉鏀寔榛樿鍙傛暟 鏀寔錛岄粯璁ゅ弬鏁?
榛樿娣誨姞鍒版渶鍓?br />
appendChild 涓嶆敮鎸?/td> 鏀寔錛屼絾鏄鍔?nbsp;tr鍚庝笉褰卞搷rows 鏀寔錛屾晥鏋滃悓insertRow(-1),褰卞搷rows dom level 1:http://www.w3.org/TR/2000/WD-DOM-Level-1-20000929/level-one-html.html#ID-64060425

//鍚憈able榪藉姞涓涓┖琛岋細
var
 otr = otable.insertRow(-1);
var otd = document.createElement("td");
otd.innerHTML 
= " "
otd.className 
= "XXXX"
otr.appendChild(otd); 

榪欐牱灝卞彲浠ヨ繍琛屽湪榪欎笁縐嶆祻瑙堝櫒涓婁簡


vls 2008-02-12 02:14 鍙戣〃璇勮
]]>
主站蜘蛛池模板: 1区2区3区产品乱码免费| 久久免费视频网站| 午夜老司机免费视频| 久久久久精品国产亚洲AV无码| 日本高清免费观看| 亚洲图片一区二区| 四虎精品视频在线永久免费观看 | 久久成人无码国产免费播放| 亚洲色婷婷综合久久| 国产一区二区免费视频| 久久亚洲精品人成综合网| 最近免费字幕中文大全视频| 亚洲第一页中文字幕| 国产三级在线观看免费| 自拍偷自拍亚洲精品播放| 天堂亚洲免费视频| 国产一级一毛免费黄片| 亚洲一区二区影院| 四虎www成人影院免费观看| 黄页网站在线观看免费| 久久精品国产亚洲网站| h在线观看视频免费网站| 亚洲午夜无码久久久久软件| 青青青国产色视频在线观看国产亚洲欧洲国产综合 | 在线观看H网址免费入口| 久久久久亚洲国产AV麻豆| 一本久久综合亚洲鲁鲁五月天| 成av免费大片黄在线观看| 亚洲激情校园春色| 免费a级毛片大学生免费观看| 中文字幕手机在线免费看电影| 亚洲视频在线观看免费视频| 免费看又爽又黄禁片视频1000| 人妖系列免费网站观看| 4480yy私人影院亚洲| 免费A级毛片无码A| 国产精品视频免费| sihu国产精品永久免费| 亚洲国产精品成人综合色在线婷婷| 国产一级一片免费播放| 1000部啪啪毛片免费看|