asp.netÒ³ÃæÉúÃüÖÜÆÚ ¸÷ʱÆÚʼþ
using System;
using System.Collections.Specialized;
using System.Data;
using System.Configuration;
using System.Collections;
using System.IO;
using System.Threading;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;
using System.Web.UI.HtmlControls;
namespace WebApplication1
{
public partial class WebForm4 : System.Web.UI.Page
{
private const string INFO_DIR = @"c:\Downloads\";
public static int requestCount;
/// <summary>
///µäÐÍÓ¦ÓãºÊ¹ÓÃIsPostBackÊôÐÔÈ·¶¨ÊÇ·ñÊǵÚÒ»´Î´¦Àí¸ÃÒ³£»
///´´½¨»òÕßÖØд´½¨¶¯Ì¬¿Ø¼þ£»
///¶¯Ì¬ÉèÖÃĸ°æÒ³£»
////¶¯Ì¬ÉèÖÃThemeÊôÐÔ£»
///¶ÁÈ¡»òÕßÉèÖÃÅäÖÃÎļþÊôÐÔÖµ¡£
///×¢Ò⣺Èç¹ûÇëÇóÊǻط¢ÇëÇó£¬Ôò¿Ø¼þµÄÖµÉÐδ´ÓÊÓͼ״̬»¹Ô¡£Èç¹ûÔڴ˽׶ÎÉèÖÿؼþÊôÐÔ£¬ÔòÖµ¿ÉÄÜ»áÔÚÏÂÒ»½×¶Î±»¸Äд¡£
/// </summary>
/// <param name="sender"></param>
/// <param name="e"></param>
protected void Page_PreInit(object sender, EventArgs e)
{
}
/// <summary>
/// ÔÚËùÓпؼþ¶¼Òѳõʼ»¯ÇÒÒÑÓ¦ÓÃËùÓÐÍâ¹ÛÉèÖúóÒý·¢¡£Ê¹ÓøÃʼþÀ´¶ÁÈ¡»ò³õʼ»¯¿Ø¼þÊôÐÔ
/// </summary>
/// <param name="sender"></param>
/// <param name="e"></param>
protected void Page_Init(object sender, EventArgs e)
{
Response.Write("Page_Init<br/>");
}
/// <summary>
/// ÓÉ Page ¶ÔÏóÒý·¢¡£Ê¹ÓøÃʼþÀ´´¦ÀíÒªÇóÏÈÍê³ÉËùÓгõʼ»¯¹¤×÷µÄÈÎÎñ
/// </summary>
/// <param name="sender"></param>
/// <param name="e"></param>
protected void Page_InitComplete(object sender, EventArgs e)
{
Response.Write("Page_InitComplete<br/>");
}
/// <summary>
/// Èç¹ûÐèÒªÔÚ Load ʼþ֮ǰ¶ÔÒ³»ò¿Ø¼þÖ´ÐÐ
Ïà¹ØÎĵµ£º
½ñÌìÎÒÖ÷ҪѧϰÁËUpdateModeÊôÐÔ¼°Ê¹ÓÃUpdateTriggers£¬°ÑÊéÖÐËù½ÌÊÚµÄÄÚÈÝÓöà¸öÀý×Óʵ¼ùÁËһϣ¬È·ÊµÃ÷°×ÁËÐí¶à¡£
UpdateMode
Ê×ÏÈÔÚÉÏһƪҲÌáµ½¹ýÕâÑùÒ»¸öÀíÂÛ£ºÔÚ̸ÂÛUpdatePanel¿Ø¼þµÄË¢ÐÂʱ£¬µ±UpdatePanel¿Ø¼þÖеÄ×ӿؼþ´¥·¢Async-Postback¶¯×÷ʱ£¬Ë¢ÐµÄÇøÓòÊ ......
ͨ³£²¿ÊôÍøÕ¾µÄʱºòÐèÒª±àÒëÄÇЩÐèÒªµÄÎļþ£¬ºÍһЩϵͳÐèÒªµÄ×é¼þ¡£
»á¸Ð¾õµ½ºÜ·±Ëö¡£
·¢²¼ÍøÕ¾ÊÇÒ»¸ö²»´íµÄÑ¡Ôñ:Ö±½Ó·¢²¼·þÎñÆ÷ÉÏ£¬ÉèÖúÃÕ¾µãÓë¶Ë¿Ú¼´¿É¡£ÒÔÏÂÊÇ×ܽáµÄ²½Öè¡£¡£¡£
µÚÒ»¡¢Êǽ«ÍøÕ¾ÀïËùÓеÄÊý¾ÝÁ¬½Ó¶¼×ö³É´Óweb.configÖжÁÈ¡£¬ÕâÑùµÄ»°£¬¾Í¿ÉÒÔÒ»ÀÍÓÀÒÝÁË¡£
µÚ¶þ¡¢¾ÍÊÇIISÉèÖÃÁË£¬ÔÚIISÖеÄasp.netÖÐ ......
״̬¹ÜÀíÊÇÄú¶Ôͬһҳ»ò²»Í¬Ò³µÄ¶à¸öÇëÇóά»¤×´Ì¬ºÍÒ³ÐÅÏ¢µÄ¹ý³Ì¡£ÓëËùÓлùÓÚ HTTP µÄ¼¼ÊõÒ»Ñù£¬Web ´°ÌåÒ³ÊÇÎÞ״̬µÄ£¬ÕâÒâζ×ÅËüÃDz»×Ô¶¯Ö¸Ê¾ÐòÁÐÖеÄÇëÇóÊÇ·ñÈ«²¿À´×ÔÏàͬµÄ¿Í»§¶Ë£¬»òÕßµ¥¸öä¯ÀÀÆ÷ʵÀýÊÇ·ñÒ»Ö±Ôڲ鿴ҳ»òÕ¾µã¡£´ËÍ⣬µ½·þÎñÆ÷µÄÿһÍù·µ¹ý³Ì¶¼½«Ïú»Ù²¢ÖØд´½¨Ò³£»Òò´ ......
Ó¦ÓóÌÐò״̬Êǿɹ© ASP.NET Ó¦ÓóÌÐòÖеÄËùÓÐÀàʹÓõÄÊý¾Ý´¢´æ¿â¡£Ëü´æ´¢ÔÚ·þÎñÆ÷µÄÄÚ´æÖУ¬Òò´ËÓëÔÚÊý¾Ý¿âÖд洢ºÍ¼ìË÷ÐÅÏ¢Ïà±È£¬ËüµÄÖ´ÐÐËٶȸü¿ì¡£ÓëÌض¨ÓÚµ¥¸öÓû§»á»°µÄ»á»°×´Ì¬²»Í¬£¬Ó¦ÓóÌÐò״̬ӦÓÃÓÚËùÓеÄÓû§ºÍ»á»°¡£Òò´Ë£¬Ó¦ÓóÌÐò״̬ÓÃÓÚ´æ´¢ÄÇЩÊýÁ¿½ÏÉÙ¡¢²»ËæÓû§µÄ±ä»¯ ......