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

40ÌõASP.NET¿ª·¢Tip

»¶Ó­ÅÄש£¬¹²Í¬½ø²½£¡£¡£¡
1¡¢ÔÚcompilation Ï£¬ÇëÉèÖÃdebug=false £¬ÈçÏ£º
 
default Language="c#" debug="false">
2¡¢ÇëʹÓÃServer.Transfer´úÌæResponse.Redirect¡£
3¡¢Ê¹ÓÃValidator¿Ø¼þ£¬ÇëÒª¾­³£¼ì²éPage.IsValid¡£
4¡¢ÇëʹÓÃforeachÑ­»·£¬¶ø²»ÊÇΪ×Ö·û´®µü´úÑ­»·¡£
5¡¢ÇëʹÓÿͻ§¶ËÑéÖ¤·½Ê½(²»ÒªÃ¿´Î¶¼ÔÚ·þÎñ¶ËÑéÖ¤)¡£
6¡¢ÎªÁ˱ÜÃâÖظ´´úÂëÖ´ÐУ¬Çë¼ì²é“Page.IsPostBack”¡£
7¡¢GIF ºÍPNGÀàËÆ£¬µ«ÊÇPNGͨ³£²úÉúÒ»¸ö½ÏСÌå»ýµÄÎļþ¡££¨µ±È»£¬ÓÐЩä¯ÀÀÆ÷²»Ö§³ÖPNG¸ñʽ£©
8¡¢¸üжþ½øÖÆÎļþʱ£¬ÇëʹÓÃAppOffline.htm ¡£
9¡¢³ý·ÇÐèÒª£¬·ñÔòÇë¹Ø±Õ¸ú×Ù¡£
 
<trace enabled="false" requestLimit="10" pageOutput="false" traceMode="SortByTime" localOnly="true"/>
10¡¢±àÒëÒ³Ã棬Çë½ûÓÃAutoEventWireup¡£ÔÚMachine.configÎļþÖÐÇëÉèÖÃAutoEventWireupΪfalse¡£
11¡¢Èç¹û²»ÐèÒª£¬Çë¹Ø±ÕSession»á»°¡£
 
<sessionstate timeout="20" cookieless="false" mode="Off" stateconnectionstring="tcpip=127.0.0.1:42424" sqlconnectionstring="data source=127.0.0.1;Trusted_Connection=no">
12¡¢ÔÚÄãÉú³É×îÖÕ°æ±¾µÄÓ¦ÓóÌÐò֮ǰ£¬ÇëÑ¡ÔñReleaseģʽ¡£Ä¬ÈÏÊÇDebug¡£
 
13¡¢Èç¹û²»ÐèÒªÇë½ûÓÃViewState ¡£
EnableViewState="false"
14¡¢Çë±ÜÃâƵ·±µÄ·ÃÎÊÊý¾Ý¿â¡£
15¡¢Ê¹Óûº´æÌá¸ßÄãµÄÓ¦ÓóÌÐòµÄÐÔÄÜ¡£
16¡¢ÑéÖ¤ËùÓеÄÓû§ÊäÈë¡£
17¡¢Çë×îºóÊÍ·ÅËùÓÐ×ÊÔ´¡£
18¡¢String ºÍStringbuilder¡£
      ÐÞ¸Ä×Ö·û´®Ê±£¬Ê¹ÓÃStringbuilder¶ø²»ÊÇString £¬ÔÚÿ´Î×Ö·û´®Ð޸ĵÄʱºò£¬String¶¼»áÕ¼¾Ý²»Í¬µÄÄÚ´æ¿Õ¼ä£¬¶øStringbuilderֻʹÓÃͬһ¸öÄÚ´æ¿Õ¼ä
19¡¢ÇÐÎðÖ±½ÓʹÓöÔÏóµÄÖµ£¬ÏÈ´Ó±¾µØ±äÁ¿»ñÈ¡¶ÔÏóµÄÖµ£¬È»ºóÔÙʹÓá£ÒòΪֱ½Ó¶ÁÈ¡¶ÔÏóµÄÖµ±È¶ÁÈ¡±äÁ¿¸ü»¨Ê±¼ä¡£
20¡¢±ÜÃâÒì³££ºÊ¹ÓÃif¡£
21¡¢´úÂëÓÅ»¯£º±ÜÃâʹÓãºx = x +1£¬¶øÊÇʹÓÃx+=1±È½ÏºÃ¡£
22¡¢Êý¾Ý·ÃÎʼ¼Êõ£ºDataReadersÌṩ¿ìËÙÓÐЧµÄÊý¾Ý¼ìË÷·½·¨¡£ÔÚÐÔÄÜ·½Ã棬DataReaderÊÇËÙ¶ÈÔ¶Ô¶³¬¹ýDataSets ¡£
23¡¢ÔÚ×öÒ»¸ö±¿ÖصÄASP´úÂëµÄ´¦Àí֮ǰ£¬Äã½øÐмì²éÒÔÈ·±£Response.IsClientConnected¡£
24¡¢±ÜÃâsession±äÁ¿£¬ÒòΪÿ¸öASPÒ³ÃæÊÇÔÚ²»Í¬µÄÏß³ÌÔËÐкÍsessionµ÷Óý«»á±»ÖðÒ»ÐòÁл¯¡£ÕâÑù»á½µµÍÓ¦ÓóÌÐò¡£Äã¿ÉÒÔʹÓÃQueryStri


Ïà¹ØÎĵµ£º

asp.net 1.1 °²×°ÊÖ²á


 
ÏÈÉý¼¶ieµ½5.5°æÒÔÉÏ
1 ÏÂÔØÖÐÎÄ°æIE6:http://download.microsoft.com/download/ie6sp1/finrel/6_sp1/W98NT42KMeXP/CN/ie6setup.exe
2 ÏÂÔØmdac°²×° Ö±½ÓÏÂÔØ2.8ÖÐÎÄ°æ:http://download.microsoft.com/download/8/b/6/8b6198c0-fe96-4811-9d81-
d5c76dd5fea8/MDAC_TYP.EXE
3 È»ºóÏÂÔØ.NET Framework 1.1°æ¿ÉÔ ......

ASP.NETÅúÁ¿ÉÏ´«excelÊý¾Ýµ½Êý¾Ý¿âMySql

aspxÒ³Ãæ
<%@ Page Language="C#" AutoEventWireup="true" CodeFile="customin.aspx.cs" Inherits="kf_customin" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd" ......

ѧϰasp.net±È½ÏÍêÕûµÄÁ÷³Ì (¶Ô³õѧÕßÓкܺõİïÖú)

Èç¹ûÄãÒѾ­Óн϶àµÄÃæÏò¶ÔÏ󿪷¢¾­Ñ飬Ìø¹ýÒÔÏÂÕâÁ½²½£º
¡¡¡¡µÚÒ»²½¡¡ÕÆÎÕÒ»ÃÅ.NETÃæÏò¶ÔÏóÓïÑÔ£¬C#»òVB.NET ÎÒÇ¿ÁÒ·´¶ÔÔÚûϵͳѧ¹ýÒ»ÃÅÃæÏò¶ÔÏó(OO)ÓïÑÔµÄÇ°ÌáÏÂȥѧASP.NET¡£ ASP.NETÊÇÒ»¸öÈ«ÃæÏò¶ÔÏóµÄ¼¼Êõ£¬²»¶®OO£¬ÄǾø¶Ôѧ²»ÏÂÈ¥!
¡¡¡¡µÚ¶þ²½¡¡¶Ô.NET FrameworkÀà¿âÓÐÒ»¶¨µÄÁ˽⠿ÉÒÔͨ¹ý¿ª·¢Windows FormÓ¦ÓÃ³Ì ......

Asp.Net·ÀֹˢÐÂÖظ´Ìá½»Êý¾Ý

     ÔÚ×öÏîÄ¿µÄʱºòÓöµ½ÕâÑùµÄÎÊÌ⣬ÍøÉÏÕÒÁËÏ£¬¾õµÃ»¹¿ÉÒÔ£¬·ÖÏí¸ø´ó¼Ò
1Â¥
Asp.Net·ÀֹˢÐÂÖظ´Ìá½»Êý¾ÝС¼Ç
×î½üÔÚÓÃAsp.Net±àдµã¶«Î÷ʱÓöµ½¸öÎÊÌ⣺¼´Óû§ÔÚÌá½»±íµ¥ºó°´Ë¢Ð¾ͻáÖظ´Ìá½»Êý¾Ý£¬¼´ËùνµÄ“Ë¢ÐÂÖظ´Ìá½»”µÄÎÊÌâ¡£ÔÚÍøÉÏËѠһϣ¬¿ÉÒÔÕÒµ½ºÜ¶à¹ØÓÚÕâ·½ÃæµÄ×ÊÁÏ ......

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


·ÃÎÊ IIS ÔªÊý¾Ý¿âʧ°Ü¡£
˵Ã÷: Ö´Ðе±Ç° Web ÇëÇóÆڼ䣬³öÏÖδ´¦ÀíµÄÒì³£¡£Çë¼ì²é¶ÑÕ»¸ú×ÙÐÅÏ¢£¬ÒÔÁ˽âÓйظôíÎóÒÔ¼°´úÂëÖе¼Ö´íÎóµÄ³ö´¦µÄÏêϸÐÅÏ¢¡£
Òì³£ÏêϸÐÅÏ¢: System.Web.Hosting.HostingEnvironmentException: ·ÃÎÊ IIS ÔªÊý¾Ý¿âʧ°Ü¡£
ÓÃÓÚÔËÐÐ ASP.NET µÄ½ø³ÌÕÊ»§±ØÐë¾ßÓÐ¶Ô IIS ÔªÊý¾Ý¿â(Èç IIS://se ......
© 2009 ej38.com All Rights Reserved. ¹ØÓÚE½¡ÍøÁªÏµÎÒÃÇ | Õ¾µãµØͼ | ¸ÓICP±¸09004571ºÅ