asp.netÐÔÄÜÓÅ»¯µÄ¼¸¸ö·½Ãæ
c#£¨»òvb.net£©³ÌÐò¸Ä½ø
1¡¢Ê¹ÓÃÖµÀàÐ͵ÄToString·½·¨
¡¡¡¡ÔÚÁ¬½Ó×Ö·û´®Ê±£¬¾³£Ê¹ÓÃ"+"ºÅÖ±½Ó½«Êý×ÖÌí¼Óµ½×Ö·û´®ÖС£ÕâÖÖ·½·¨ËäÈ»¼òµ¥£¬Ò²¿ÉÒԵõ½ÕýÈ·½á¹û£¬µ«ÊÇÓÉÓÚÉæ¼°µ½²»Í¬µÄÊý¾ÝÀàÐÍ£¬Êý×ÖÐèҪͨ¹ý×°Ïä²Ù×÷ת»¯ÎªÒýÓÃÀàÐͲſÉÒÔÌí¼Óµ½×Ö·û´®ÖС£µ«ÊÇ×°Ïä²Ù×÷¶ÔÐÔÄÜÓ°Ïì½Ï´ó£¬ÒòΪÔÚ½øÐÐÕâÀà´¦Àíʱ£¬½«ÔÚÍйܶÑÖзÖÅäÒ»¸öеĶÔÏó£¬ÔÓеÄÖµ¸´ÖƵ½Ð´´½¨µÄ¶ÔÏóÖС£
¡¡¡¡Ê¹ÓÃÖµÀàÐ͵ÄToString·½·¨¿ÉÒÔ±ÜÃâ×°Ïä²Ù×÷£¬´Ó¶øÌá¸ßÓ¦ÓóÌÐòÐÔÄÜ¡£
int num=1;
string str="go"+num.ToString();
2¡¢ÔËÓÃStringBuilderÀà
¡¡¡¡StringÀà¶ÔÏóÊDz»¿É¸Ä±äµÄ£¬¶ÔÓÚString¶ÔÏóµÄÖØи³ÖµÔÚ±¾ÖÊÉÏÊÇÖØд´½¨ÁËÒ»¸öString¶ÔÏó²¢½«ÐÂÖµ¸³Óè¸Ã¶ÔÏó£¬Æä·½·¨ToString¶ÔÐÔÄܵÄÌá¸ß²¢·ÇºÜÏÔÖø¡£
¡¡¡¡ÔÚ´¦Àí×Ö·û´®Ê±£¬×îºÃʹÓÃStringBuilderÀ࣬Æä.NET ÃüÃû¿Õ¼äÊÇSystem.Text¡£¸ÃÀಢ·Ç´´½¨ÐµĶÔÏ󣬶øÊÇͨ¹ýAppend£¬Remove£¬InsertµÈ·½·¨Ö±½Ó¶Ô×Ö·û´®½øÐвÙ×÷£¬Í¨¹ýToString·½·¨·µ»Ø²Ù×÷½á¹û¡£
¡¡¡¡Æ䶨Òå¼°²Ù×÷Óï¾äÈçÏÂËùʾ£º
int num;
System.Text.StringBuilder str = new System.Text.StringBuilder(); //´´½¨×Ö·û´®
str.Append(num.ToString()); //Ìí¼ÓÊýÖµnum
Response.Write(str.ToString); //ÏÔʾ²Ù×÷½á¹û
3¡¢Ê¹Óà HttpServerUtility.Transfer ·½·¨ÔÚͬһӦÓóÌÐòµÄÒ³Ãæ¼äÖض¨Ïò
¡¡¡¡²ÉÓà Server.Transfer Óï·¨£¬ÔÚÒ³ÃæÖÐʹÓø÷½·¨¿É±ÜÃâ²»±ØÒªµÄ¿Í»§¶ËÖض¨Ïò£¨Response.Redirect£©¡£
4¡¢±ÜÃâʹÓÃArrayList¡£
ÒòΪÈκζÔÏóÌí¼Óµ½ArrayList¶¼Òª·âÏäΪSystem.ObjectÀàÐÍ£¬´ÓArrayListÈ¡³öÊý¾Ýʱ£¬Òª²ðÏä»Øʵ¼ÊµÄÀàÐÍ¡£½¨ÒéʹÓÃ×Ô¶¨ÒåµÄ¼¯ºÏÀàÐÍ´úÌæArrayList¡£asp.net 2.0ÌṩÁËÒ»¸öеÄÀàÐÍ£¬½Ð·ºÐÍ£¬ÕâÊÇÒ»¸öÇ¿ÀàÐÍ£¬Ê¹Ó÷ºÐͼ¯ºÏ¾Í¿ÉÒÔ±ÜÃâÁË·âÏäºÍ²ðÏäµÄ·¢Éú£¬Ìá¸ßÁËÐÔÄÜ¡£
5¡¢Ê¹ÓÃHashTale´úÌæÆäËû×ֵ伯ºÏÀàÐÍ
£¨ÈçStringDictionary,NameValueCollection,HybridCollection£©£¬´æ·ÅÉÙÁ¿Êý¾ÝµÄʱºò¿ÉÒÔʹÓÃHashTable.
6¡¢Îª×Ö·û´®ÈÝÆ÷ÉùÃ÷³£Á¿£¬²»ÒªÖ±½Ó°Ñ×Ö·û·â×°ÔÚË«ÒýºÅ" "ÀïÃæ¡£
//±ÜÃâ
MyObject obj = new MyObject();
obj.Status = "ACTIVE";
//ÍƼö
const string C_STATUS = "ACTIVE";
MyObject obj = new MyObject();
obj.Status = C_STATUS;
7¡¢²»ÒªÓÃToUpper(),ToLower()ת»»×Ö·û´®½øÐбȽϣ¬ÓÃString.Compare´úÌ棬Ëü¿ÉÒÔºöÂÔ´óСд½øÐбȽÏ.
Àý£º
const string C_VALUE = "COMPARE"
Ïà¹ØÎĵµ£º
[ת]asp.netµ¼³öExcel/Csv¸ñʽÊý¾Ý×îÓÅ·½°¸£¨C#£©
±¾ÎÄת×Ô£ºhttp://www.cnblogs.com/lovenets2008/archive/2008/05/06/1184234.html
ÔÎÄÈçÏ£º
ºÃ¾ÃûÓÐдµãʲôÁË£¬Ò²ÐíÊÇ̫æ¡£Ò»ÄêÁË£¬»ýÀÛÁ˲»ÉٺõĶ«¶«£¬Óлú»áʱ¾Íд³öÀ´Óë´ó¼Ò·ÖÏí¡£
ºÃ£¬ÑÔ¹éÕý´«¡£
µ¼³öµ½Excel/CscÎļþ²¢²»ÄÑ£¬ËùÒÔ¾ÍÓкö෽·¨£ ......
ASP.NET IIS ×¢²á¹¤¾ß (Aspnet_regiis.exe)
ÔÚһ̨¼ÆËã»úÉϲ¢ÐÐÖ´Ðжà¸ö .NET Framework °æ±¾Ê±£¬Ó³Éäµ½ ASP.NET Ó¦ÓóÌÐòµÄ ASP.NET ISAPI °æ±¾¾ö¶¨Á˸ÃÓ¦ÓóÌÐòËùʹÓõĹ«¹²ÓïÑÔÔËÐпâ (CLR) °æ±¾¡£Ê¹Óà ASP.NET IIS ×¢²á¹¤¾ß (Aspnet_regiis.exe)£¬¹ÜÀíÔ±»ò°²×°³ÌÐò¿ÉÒÔ·½±ãµØ¸üРASP.NET Ó¦ÓóÌÐòµÄ½Å±¾Ó³É䣬ʹÆäÖ¸Ï ......
Íøҳʼþ
µäÐ͵ÄʹÓ÷½Ê½
PreInit
PreInitʼþÊÇÍøÒ³ÉúÃüÖÜÆÚÖзdz£ÔçÆðµÄÒ»¸öʼþ£¬ÔÚPreInitʼþ´¥·¢Ö®ºó£¬¾Í»á¼ÓÔØÓû§ÉèÖÃÐÅÏ¢ÓëÍøÒ³Ö÷Ìâ¡£ÎÒÃÇͨ³£Ê¹ÓÃPreInitʼþÀ´Ö´ÐÐÏÂÁд¦Àí£º
l ¼ì²éIsPostBackÊôÐÔ£¬À´È·ÈÏÍøÒ³ÊÇ·ñΪµÚÒ»´Î±»´¦Àí¡£
l   ......
±¾ÎÄÊ×·¢£ºhttp://www.xueit.com/html/2009-11-12/21-932220455859.html
ÏÂÃæ²âÊÔÏ·ֲ¼Ê½»º´æMemcachedÈí¼þ£¬Ò»Ö±ÔÚѧϰ¹Ø×¢´ó·ÃÎÊÁ¿ÍøÕ¾µÄ»º´æÊÇÈçºÎʵÏÖ£¬Ö®Ç°¿´¹ýMemcachedµÄ×ÊÁÏ£¬Ã¦ÓÚûÓÐʱ¼äÀ´ÕæÕý²âÊÔһϣ¬±¾ÎIJâÊÔ·Ö²¼Ê½»º´æMemcachedµÄ»·¾³ÈçÏ£º£¨Á½Ì¨µçÄÔ×÷Ϊ·þÎñÆ÷£©
µÚһ̨£º
CPU:Inter£¨R£© Pentium£¨R£ ......
ÔÚ¿ª·¢ÐèÒªÓû§×¢²áºó²ÅÄÜʹÓÃÌṩµÄ¸÷ÏÄܵÄÓ¦ÓóÌÐòʱ£¬ÔÚÐÂÓû§Ìá½»×¢²áÐÅÏ¢ºó£¬½Ï³£¼ûµÄ×ö·¨ÊÇÓɳÌÐòÉú³ÉËæ»úÃÜÂ룬Ȼºó·¢ËÍÃÜÂëµ½Óû§×¢²áʱÌîдµÄµç×ÓÐÅÏ䣬Óû§ÔÙÓÃÊÕµ½µÄÃÜÂëÀ´¼¤»îÆäÕÊ»§¡£
ʵÏÖASP.NETÉú³ÉËæ»úÃÜÂ빦ÄÜÊǺÜÈÝÒ׵ģ¬ÏÂÃæµÄ´úÂë¸ø³öÁËÍêÕûµÄʵÏÖ·½·¨£º
public static string MakePasswor(string ......