asp.netÐÔÄÜ
1.¹Ø±Õ²»±ØÒªµÄSession
<%@ Page EnableSessionState="flase"%>
2.¹Ø±Õ²»±ØÒªµÄViewState
<asp:DataGrid EnableViewState="false" runat="server">
Èç¹ûÒ³Ãæ¼¶
<%@ Page EnableViewState="false"%>
3.²»ÒªÊ¹ÓÃException¿ØÖƳÌÐòÁ÷³Ì
ExceptionÊǺܺÄ×ÊÔ´µÄ
4.½ûÓÃVBºÍJScript¶¯Ì¬Êý¾ÝÀàÐÍ
¶¯Ì¬Êý¾ÝÀàÐÍÊÇÒªÕ¼ÓôóÁ¿µÄCPUÔËÐÐʱ¼ä
<%@ Page Language="VB" Strict="true"%>
5.ʹÓô洢¹ý³ÌµÄÊý¾Ý·ÃÎÊ
6.Ö»¶ÁÊý¾Ý·ÃÎʲ»ÒªÊ¹ÓÃDataSet(DataSetÊǶϿªÁ¬½ÓµÄ,´æ´¢ÔÙÄÚ´æÖÐ,ËùÒÔ×ÊÔ´µÄÏûºÄ¾Þ´ó)
ʹÓÃSqlDataReader´úÌæDataSet
SqlDataReaderÊÇread-only,forward-only
7.¹Ø±ÕASP.NETµÄDebugģʽ,²¿ÊðʱÊÇÔÙweb.configÖÐÈ¡ÏûDebug.
8.ASP.NETÊä³ö»º³å
Ò³Ãæ»º³å:
<% OutputCache Duration=60 VaryByParam="None"%>
Duration=ÑÓ³Ùʱ¼ä;
VaryByParam=¿Ø¼þid,ÀýÈçVaryParam="TextBox1";
Çв»¿É×÷ÎÞΪµÄ»º³å;
Ƭ¶Ï»º³å :VaryByControl
asp.netеĶÔÏóCacheÓÚApplication¶ÔÏó¾ßÓÐÏàͬµÄ×÷ÓÃÓò
Cache.Insert("MyData",Source,new CacheDependency(Server.MapPath("authors.xml")));
¾ø¶Ô¹ýÆÚ
Cache.Insert("MyData",Source,null,DataTime.Now.AddHours(1),TimeSpan.Zero);
Ïà¶Ô¹ýÆÚ
Cache.Insert("Mydata",Source,null,DataTime,MaxValue,TimeSpan.fromMinutes(20));
Ïà¹ØÎĵµ£º
ÌõÐÎÂëÊÇÆù½ñΪֹ×á¢ÊµÓõÄÒ»ÖÖ×Ô¶¯Ê¶±ð¼¼Êõ¡£ÌõÐÎÂë¼¼Êõ¾ßÓÐÒÔϼ¸¸ö·½ÃæµÄÓŵã
¡¡¡¡A£®ÊäÈëËٶȿ죺Óë¼üÅÌÊäÈëÏà±È£¬ÌõÐÎÂëÊäÈëµÄËÙ¶ÈÊǼüÅÌÊäÈëµÄ5±¶£¬²¢ÇÒÄÜʵÏÖ“¼´Ê±Êý¾ÝÊäÈ딡£
¡¡¡¡B£®¿É¿¿ÐԸߣº¼üÅÌÊäÈëÊý¾Ý³ö´íÂÊΪÈý°Ù·ÖÖ®Ò»£¬ÀûÓùâѧ×Ö·ûʶ±ð¼¼Êõ³ö´íÂÊΪÍò·ÖÖ®Ò»£¬¶ø²ÉÓÃÌõÐÎÂë¼¼ÊõÎóÂëÂʵ ......
///<summary>
///±¸·ÝÊý¾Ý¿âµ½±¾µØ´ÅÅÌ
///</summary>
public bool BackUp(string BackUpFile)
{
try
&nbs ......
×î½üÏëÑо¿ÏÂweb service,ÄκÎÕÒ±éÍøÂ磬¶¼Êǽ²Ð©¶¨ÒåÐԵĶ«Î÷£¬·º·º¶øÌ¸£¬ÎÒ¿´µÄÒ»Öª°ë½â£¬²»µÃÒªÁì¡£²»¹ý½ñÌì×ÜËãÓеãÊÕ»ñ£¬Ð´ÁË ¸öСµÄweb serviceÀý×Ó£¬¾ÍÊÇÅжÏÒ»¸öÊýÊDz»ÊÇÖÊÊý¡£»¹ÊÇÀÏ»°£¬¸ø´ó¼ÒÆðÅ×שÒýÓñµÄ×÷Óã¬Ö»ÊǸø´ó¼Ò½²½âÈçºÎ¿ª·¢×î¼òµ¥µÄweb service³ÌÐò ¡£Ö»ÒªÈëÁËÃż÷£¬ÒÔºóµÄ·¾Í¿ÉÒÔ×Ô¼º×ßÁË¡£
µÚÒ»£¬ ......
http://blog.csdn.net/chengking/archive/2005/10/27/518079.aspx
(Ò»).Ñ¡Ôñ»á»°×´Ì¬´æ´¢·½Ê½
ÔÚWebconfigÎļþÅäÖÃ:
<sessionState mode="???" stateConnectionString="tcpip=127.0.0.1:42424"
sqlConnectionString ......
ASP.NetÉú³É¾²Ì¬HTMLÒ³!
»·¾³:Microsoft .NET Framework SDK v1.1
OS:Windows Server 2003 ÖÐÎİæ
ASP.NetÉú³É¾²Ì¬HTMLÒ³
ÔÚAspÖÐʵÏÖµÄÉú³É¾²Ì¬Ò³Óõ½µÄFileSystemObject¶ÔÏó!
ÔÚ.NetÖÐÉæ¼°´ËÀà²Ù×÷µÄÊÇSystem.IO
ÒÔÏÂÊdzÌÐò´úÂë ×¢:´Ë´úÂë·ÇÔ´´!²Î¿¼±ðÈË´úÂë
//Éú³ÉHTMLÒ³
public static bool W ......