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.IsClientConnected¡£
24¡¢±ÜÃâsession±äÁ¿£¬ÒòΪÿ¸öASPÒ³ÃæÊÇÔÚ²»Í¬µÄÏß³ÌÔËÐкÍsessionµ÷Óý«»á±»ÖðÒ»ÐòÁл¯¡£ÕâÑù»á½µµÍÓ¦ÓóÌÐò¡£Äã¿ÉÒÔʹÓÃQueryString¼¯ºÏ»òÕß±íµ¥ÉÏÃæµÄhidden±äÁ¿À´±£´æÖµ¡£
25¡¢Ê¹bufferÓÐЧ£¬ÄÜÌá¸ßÐÔÄÜ£¬È磺
<% response.buffer=true %>
½Ó×ÅʹÓãº
<% response.flush=true
Ïà¹ØÎĵµ£º
¶ÁÈ¡SAPÊý¾Ý, ´ÓÁ½·½ÃæÀ´×ö
1) ×öÒ»¸öC# app ÔÚ·þÎñÆ÷ÉÏ"ÈÎÎñ¼Æ»®"ÿÌì¶ÁÈ¡. ±ØÐëÔÚ·þÎñÆ÷ÉÏÖ´ÐÐ, ·ñÔò¿ÉÄÜ´ÓSAP¶ÁµÄºº×ÖÊÇÂÒÂë.
2) ¶ÔÓÚҪʵʱ¶ÁÈ¡µÄ, ×ö³ÉÒ³Ãæ»òweb Service·ÅOAÉÏ.
ÏÂÃæÊÇÒ³ÃæʵÏֵIJ¿·Ö´úÂë.
using System.Data.SqlClient; //Á¬½ÓSQL SERVER
using System.Data.OleDb; &n ......
ASP.NET»ñÈ¡Òþ²ØÎļþµÄÀàÃû£¨Ô£© http://www.cnblogs.com/lin614/archive/2008/01/25/1052676.html Õâ¸öÎÊÌâÔÚ¿ª·¢ÖÐÓöµ½¡£
this.GetType(). µÃµ½µÄ: ASP.****_ASPX
ÄÇÎÒ¸ÃÈçºÎ²ÅÄܵõ½ ÀàÃû:****¡£Í¨¹ý×Ö·û´®´¦ÀíµÃµ½µÄÀàÃû×ܸоõ²»ÊÇÕý¹æ;¾¶¡£
¾¹ý²éѯ×ÊÁÏ£ ......
<script language="javascript">
function init()
{
var tbBody = document.getElementById("<%=GridView2.ClientID%>");
  ......
1.
±£Ö¤xp»·¾³ÒѾ°²×°ÓÐ.net framework 3.5 sp1¡¢asp.net mvc 1.0»ò2.0
2.
ÓÉÓÚiis5.1Ö»ÓÐÒ»¸öĬÈÏÍøÕ¾£¬Òò´ËÏȽ«Ä¬ÈÏÍøÕ¾µÄÆäËûÎļþ·Åµ½ÆäËûλÖ㬽«ÏîÄ¿Îļþ¿½±´µ½Ä¬ÈÏÍøÕ¾ËùÔÚĿ¼£¨Ò»°ãÊÇ£ºC:\Inetpub\wwwroot£©£¬ÐÞ¸ÄÏàÓ¦µÄÁ¬½Ó×Ö·û´®¡£
3. ......
1. ¼òÊö private¡¢ protected¡¢ public¡¢ internal ÐÞÊηûµÄ·ÃÎÊȨÏÞ¡£
´ð . private : ˽ÓгÉÔ±, ÔÚÀàµÄÄÚ²¿²Å¿ÉÒÔ·ÃÎÊ¡£
protected : ±£»¤³ÉÔ±£¬¸ÃÀàÄÚ²¿ºÍ¼Ì³ÐÀàÖпÉÒÔ·ÃÎÊ¡£
public : ¹«¹²³ÉÔ±£¬ÍêÈ«¹«¿ª£¬Ã»ÓзÃÎÊÏÞÖÆ¡£
internal: ÔÚͬһÃüÃû¿Õ¼äÄÚ¿ÉÒÔ·ÃÎÊ¡£
2 .ÁоÙASP.NET Ò³ÃæÖ®¼ä´«µÝÖµµÄ¼¸ÖÖ·½Ê½¡£
´ ......