40ÌõASP.NET¿ª·¢ÖªÊ¶
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.I
Ïà¹ØÎĵµ£º
ÏÈÉý¼¶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°æ¿ÉÔ ......
treeview.aspxÖдúÂëÈçÏ£º
<%@ Page Language="C#" AutoEventWireup="true" CodeFile="treeview.aspx.cs" Inherits="treeview" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999 ......
ÔÚ×öÏîÄ¿µÄʱºòÓöµ½ÕâÑùµÄÎÊÌ⣬ÍøÉÏÕÒÁËÏ£¬¾õµÃ»¹¿ÉÒÔ£¬·ÖÏí¸ø´ó¼Ò
1Â¥
Asp.Net·ÀֹˢÐÂÖظ´Ìá½»Êý¾ÝС¼Ç
×î½üÔÚÓÃAsp.Net±àдµã¶«Î÷ʱÓöµ½¸öÎÊÌ⣺¼´Óû§ÔÚÌá½»±íµ¥ºó°´Ë¢Ð¾ͻáÖظ´Ìá½»Êý¾Ý£¬¼´ËùνµÄ“Ë¢ÐÂÖظ´Ìá½»”µÄÎÊÌâ¡£ÔÚÍøÉÏËÑ Ò»Ï£¬¿ÉÒÔÕÒµ½ºÜ¶à¹ØÓÚÕâ·½ÃæµÄ×ÊÁÏ ......
RowÄÚÕÒLabel¿Ø¼þ
//ÄÚ²¿¿Ø¼þʼþ
protected void LinkButton11_Click1(object sender, EventArgs e)
{
//ɾ³ý¶ÔÓ¦µÄÊÂÎñ
int ......