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

ASP.NETÉú³ÉËæ»úÃÜÂë

ÔÚ¿ª·¢ÐèÒªÓû§×¢²áºó²ÅÄÜʹÓÃÌṩµÄ¸÷ÏÄܵÄÓ¦ÓóÌÐòʱ£¬ÔÚÐÂÓû§Ìá½»×¢²áÐÅÏ¢ºó£¬½Ï³£¼ûµÄ×ö·¨ÊÇÓɳÌÐòÉú³ÉËæ»úÃÜÂ룬Ȼºó·¢ËÍÃÜÂëµ½Óû§×¢²áʱÌîдµÄµç×ÓÐÅÏ䣬Óû§ÔÙÓÃÊÕµ½µÄÃÜÂëÀ´¼¤»îÆäÕÊ»§¡£
ʵÏÖASP.NETÉú³ÉËæ»úÃÜÂ빦ÄÜÊǺÜÈÝÒ׵ģ¬ÏÂÃæµÄ´úÂë¸ø³öÁËÍêÕûµÄʵÏÖ·½·¨£º
public static string MakePasswor(stringpwdchars,intpwdlen)
{
stringtmpstr="";
intiRandNum;
Randomrnd=newRandom();
for(inti=0; i{
iRandNum=rnd.Next(pwdchars.Length);
tmpstr+=pwdchars[iRandNum];
}
returntmpstr;
}
¶ÔÕÕÔ´Â룬½²Ò»Ï¾ßÌåµÄ˼·£º
·½·¨ MakePassword ½ÓÊÜÁ½¸ö²ÎÊý£¬pwdchars ²ÎÊýÖ¸¶¨Éú³ÉµÄËæ»úÃÜÂë´®¿ÉÒÔʹÓÃÄÄЩ×Ö·û£¬pwdlen Ö¸¶¨Éú³ÉµÄËæ»úÃÜÂë´®µÄ³¤¶È¡£ÓÐÁËÕâÁ½¸ö²ÎÊý£¬Í¨¹ýµ÷Óà Random ÀàµÄ Next() ·½·¨£¬ÏÈ»ñµÃÒ»¸ö´óÓÚ»òµÈÓÚ 0 ¶øСÓÚ pwdchars ³¤¶ÈµÄÕûÊý£¬ÒÔ¸ÃÊý×÷ΪË÷ÒýÖµ£¬´Ó¿ÉÓÃ×Ö·û´®ÖÐËæ»úÈ¡×Ö·û£¬ÒÔÖ¸¶¨µÄÃÜÂ볤¶ÈΪѭ»·´ÎÊý£¬ÒÀ´ÎÁ¬½ÓÈ¡µÃµÄ×Ö·û£¬×îºó¼´µÃµ½ËùÐèµÄËæ»úÃÜÂë´®ÁË¡£
´úÂëµ÷Óà MakePassword() ·½·¨»ñÈ¡³¤¶ÈΪ 10 £¬¿ÉÓÃ×Ö·û·¶Î§Îª´óСд×Öĸ¼°Êý×ÖµÄËæ»ú×Ö·û´®¡£
string randomchars ="abcdefghijklmnopqrstuvwxyz0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZ"; string password = MakePassword(randomchars, 10); ÒÔÉÏÊÇASP.NETÉú³ÉËæ»úÃÜÂë¡£


Ïà¹ØÎĵµ£º

asp.net Ò³ÃæÉú´æÖÜÆÚ ×ª

1. PreInit()ÔÚÕâ¸öÒ³Ã漶µÄʼþÖУ¬ËùÓÐÔÚÉè¼Æʱ´´½¨µÄ¿Ø¼þ¶¼½«±»ÓÃĬÈÏÖµ×ö³õʼ»¯¡£ÀýÈ磬Èç¹ûÄãÓÐÒ»¸öTextÊôÐÔֵΪ"Hello"µÄTextBox¿Ø¼þ£¬Ôò´ËʱÕâ¸öÊôÐÔ±»ÉèÖá£ÎÒÃÇÒ²¿ÉÒÔÔÚÕâÀﶯ̬µÄ´´½¨¿Ø¼þ¡£Õâ¸öʼþ½ö½ö·¢ÉúÔÚÒ³¼¶±ðµÄÀàÖУ¬Óû§¿Ø¼þºÍĸ°æҳûÓÐÕâ¸öʼþ¡£ÏÂÃæµÄ´úÂëʾÀýÁËÈçºÎÖØдÕâ¸ö·½·¨ÒÔÔö¼ÓÄãµÄ×Ô¶¨Òå´úÂë ......

ASP.NET IIS ×¢²á¹¤¾ß (Aspnet_regiis.exe)

ASP.NET IIS ×¢²á¹¤¾ß (Aspnet_regiis.exe)
ÔÚһ̨¼ÆËã»úÉϲ¢ÐÐÖ´Ðжà¸ö .NET Framework °æ±¾Ê±£¬Ó³Éäµ½ ASP.NET Ó¦ÓóÌÐòµÄ ASP.NET ISAPI °æ±¾¾ö¶¨Á˸ÃÓ¦ÓóÌÐòËùʹÓõĹ«¹²ÓïÑÔÔËÐпâ (CLR) °æ±¾¡£Ê¹Óà ASP.NET IIS ×¢²á¹¤¾ß (Aspnet_regiis.exe)£¬¹ÜÀíÔ±»ò°²×°³ÌÐò¿ÉÒÔ·½±ãµØ¸üРASP.NET Ó¦ÓóÌÐòµÄ½Å±¾Ó³É䣬ʹÆäÖ¸Ï ......

ASP.NETÍøÒ³ÉúÃüÖÜÆÚʼþ


Íøҳʼþ
µäÐ͵ÄʹÓ÷½Ê½
PreInit
PreInitʼþÊÇÍøÒ³ÉúÃüÖÜÆÚÖзdz£ÔçÆðµÄÒ»¸öʼþ£¬ÔÚPreInitʼþ´¥·¢Ö®ºó£¬¾Í»á¼ÓÔØÓû§ÉèÖÃÐÅÏ¢ÓëÍøÒ³Ö÷Ìâ¡£ÎÒÃÇͨ³£Ê¹ÓÃPreInitʼþÀ´Ö´ÐÐÏÂÁд¦Àí£º
l         ¼ì²éIsPostBackÊôÐÔ£¬À´È·ÈÏÍøÒ³ÊÇ·ñΪµÚÒ»´Î±»´¦Àí¡£
l    ......

ASP.NET 2.0»º´æ (ת)

Ò»¡¢Ò³Êä³ö»º´æ
1.ÉèÖà ASP.NET Ò³»º´æµÄÁ½ÖÖ·½Ê½
1.1 ÒÔÉùÃ÷·½Ê½ÉèÖà ASP.NET Ò³µÄ»º´æ
ÒÔÉùÃ÷·½Ê½ÉèÖà ASP.NET Ò³µÄ»º´æµÄ·½·¨ÊÇÔÚÒ³ÖÐʹÓà @ OutputCache Ö¸ÁËüµÄ³£ÓÃÊôÐÔÈçÏ£º
 
³ÌÐò´úÂë
<%@ OutputCache Duration="" VaryByParam="" VaryByControl="" VaryByHeader="" VaryByCustom="" CacheProfi ......
© 2009 ej38.com All Rights Reserved. ¹ØÓÚE½¡ÍøÁªÏµÎÒÃÇ | Õ¾µãµØͼ | ¸ÓICP±¸09004571ºÅ