asp.netÒ³ÃæʼþÖ´ÐÐ˳Ðò¼°¸÷ʼþ×÷ÓÃ
protected void Page_Load(object sender, EventArgs e)
{
}
#region OnPreInit µÚÒ»²½
protected override void OnPreInit(EventArgs e)
{
//¼ì²é IsPostBack ÊôÐÔÀ´È·¶¨ÊDz»ÊǵÚÒ»´Î´¦Àí¸ÃÒ³¡£
//´´½¨»òÖØд´½¨¶¯Ì¬¿Ø¼þ¡£
//¶¯Ì¬ÉèÖÃÖ÷¿ØÒ³¡£
//¶¯Ì¬ÉèÖà Theme ÊôÐÔ¡£
//¶ÁÈ¡»òÉèÖÃÅäÖÃÎļþÊôÐÔÖµ¡£
//×¢Òâ
//Èç¹ûÇëÇóÊǻط¢ÇëÇó£¬Ôò¿Ø¼þµÄÖµÉÐδ´ÓÊÓͼ״̬»¹Ô¡£Èç¹ûÔڴ˽׶ÎÉèÖÿؼþÊôÐÔ£¬ÔòÆäÖµ¿ÉÄÜ»áÔÚÏÂһʼþÖб»ÖØд¡£
base.OnPreInit(e);
}
#endregion
#region OnInit µÚ¶þ²½
protected override void OnInit(EventArgs e)
{
//ÔÚËùÓпؼþ¶¼Òѳõʼ»¯ÇÒÒÑÓ¦ÓÃËùÓÐÍâ¹ÛÉèÖúóÒý·¢¡£Ê¹ÓøÃʼþÀ´¶ÁÈ¡»ò³õʼ»¯¿Ø¼þÊôÐÔ¡£
base.OnInit(e);
}
#endregion
#region OnInitComplete µÚÈý²½
protected override void OnInitComplete(EventArgs e)
{
//ÓÉ Page ¶ÔÏóÒý·¢¡£Ê¹ÓøÃʼþÀ´´¦ÀíÒªÇóÏÈÍê³ÉËùÓгõʼ»¯¹¤×÷µÄÈÎÎñ¡£
base.OnInitComplete(e);
}
#endregion
#region PreLoad µÚËIJ½
protected override void OnPreLoad(EventArgs e)
{
//Èç¹ûÐèÒªÔÚ Load ʼþ֮ǰ¶ÔÒ³»ò¿Ø¼þÖ´Ðд¦Àí£¬ÇëʹÓøÃʼþ¡£
//ÔÚ Page Òý·¢¸
Ïà¹ØÎĵµ£º
½ñÔçÓиöÍøÓÑÎʵ½ÎÒÕâÎÊÌ⣬ÒÔÇ°ÎÒ¶¼ÊÇÖ±½ÓÔÚÊý¾Ý¿âÖдæÎļþÃûµÄ£¬»¹Ã»ÓÐÊÔ¹ý´æ´¢ÕûÕÅͼƬµ½Êý¾Ý¿âÖУ¬ÉÏÍøËÑË÷ÁËһϣ¬×Ô¼ºÓÖ²âÊÔÁËÒ»·¬£¬´úÂëÈçÏ£º
½¨Á¢±£´æͼƬµÄ±íµÄSQLÓï¾ä£º
Sql´úÂë < width="14" height="15" src="javascripts/syntaxhighlighter/clipboard_new.swf" pluginspage="http://w ......
»ùÓÚ¹¦Äܸü·á¸»µÄ»ù´¡À๹½¨Äú×Ô¼ºµÄ ASP.NET Ò³Ãæ
·¢²¼ÈÕÆÚ : 11/4/2004 | ¸üÐÂÈÕÆÚ : 11/4/2004
Dino Esposito
Wintellect
ÊÊÓ÷¶Î§£º
Microsoft ASP.NET
Microsoft ASP.NET 2.0
ÕªÒª£ºÍ¨¹ý¼Ì³Ð¿ÉÒÔÔÚͨÓà Microsoft ASP.NET ÀࣨÀýÈç Page ÀࣩÖÐÌí¼Ó¹¦ÄÜ¡£ÕâΪÄúÌṩÁËÒ»¸ö¹«¹²³¡Ëù£¬Ê¹Äú¿ÉÒÔÌí¼Ó¹¦Äܲ¢½«¹¦Äܲ¿ ......
ÔÚGlobal.asaxÆô¶¯Ò»ÌõÏ߳̾ÍokÁË£¬ÏÂÃæÊÇÆô¶¯Ï̶߳¨Ê±Ð´ÎļþµÄÀý×Ó
ÔÚGlobal.asax
C# code:
<%@ Application Language="C#" %>
<%@ Import Namespace="System.IO" %>
<%@ Import Namespace="System.Threading" %>
<script runat="server">
string LogPath;  ......
ѧϰASP.NETÖеÄApplication¡¢Session¡¢Cookie
1.Application½¨Á¢µÄ±äÁ¿£¬ÔÚϵͳÄÚ²¿Èκεط½¶¼¿ÉÒÔ·ÃÎÊ£¬Í¨³£ÍøÕ¾µØ·ÃÎÊͳ¼Æ¿ÉÄÜ»áÓõĽ϶ࡣÈç¹ûÒªÓõ½ApplicationÊ×ÏÈÔÚVS2005Öн¨Á¢Ò»¸öglobal.asaÎļþ¡£ÀýÈçÎÒÃÇҪдһ¸öÍøÕ¾·ÃÎÊÊýÁ¿µÄͳ¼ÆµÄ»°£¬ÔÚglobal.asaÖÐÏÈÉùÃ÷±äÁ¿iCount¡£ÈçÏÂËùʾ£º
  ......