ʲôÊÇAsp.NetÓ¦ÓóÌÐò
ASP.NET defines an application as the sum of all files, pages, handlers, modules, and executable code that can be invoked or run in the scope of a given virtual directory (and its subdirectories) on a Web application server. For example, an "order" application might be published in the "/order" virtual directory on a Web server computer. For IIS the virtual directory can be set up in the Internet Services Manager; it contains all subdirectories, unless the subdirectories are virtual directories themselves.
Each ASP.NET Framework application on a Web server is executed within a unique .NET Framework application domain, which guarantees class isolation (no versioning or naming conflicts), security sandboxing (preventing access to certain machine or network resources), and static variable isolation.
ASP.NET maintains a pool of HttpApplication instances over the course of a Web application's lifetime. ASP.NET automatically assigns one of these instances to process each incoming HTTP request that is received by the application. The particular HttpApplication instance assigned is responsible for managing the entire lifetime of the request and is reused only after the request has been completed. This means that user code within the HttpApplication does not need to be reentrant.
·¢±íÓÚ @ 2009Äê09ÔÂ23ÈÕ¡¡14:25:00 | ÆÀÂÛ( 0 ) | ±à¼| ¾Ù±¨| ÊÕ²Ø
¾Éһƪ:C#ÈçºÎ´ò¿ªÖ¸¶¨Îļþ¼Ð | ÐÂһƪ:GAC Overview
±¾ÎÄÀ´×ÔCSDN²©¿Í£¬×ªÔØÇë±êÃ÷³ö´¦£ºhttp://blog.csdn.net/chimomo/archive/2009/09/23/4584072.aspx
Ïà¹ØÎĵµ£º
×÷Õߣº°½Ê¿Î°
Ò»¡¢ÏîÄ¿ÖÐÒýÓÃlog4net.dll
¶þ¡¢AssemblyInfo.csÖмÓÈ룺
[assembly:log4net.Config.DOMConfigurator(ConfigFile="log4net.xml", Watch=true)]
˵Ã÷£ºÖ¸Ã÷log4net.xmlÅäÖÃÎļþ
Èý¡¢´úÂëÖÐʹÓÃLog4net
using log4net;
ILog log = LogManager.GetLogger("log4net");
log.Info("It's OK!");
¸½£ ......
Óû§¿Ø¼þÊÇASP.NETÖкÜÖØÒªµÄÒ»²¿·Ö£¬Ê¹ÓÃËü¿ÉÒÔÌá¸ß³ÌÐò´úÂëµÄÖØÓÃÐÔ£¬¼´Ò»¸öÓû§¿Ø¼þÔÚÍøÒ³¡¢Óû§¿Ø¼þ»ò¿Ø¼þµÄÄÚ²¿¶¼¿ÉÒÔÔÙ´ÎʹÓᣱ¾ÊµÀý½éÉÜÓû§µÇ¼µÄÓû§¿Ø¼þÒ²¿ÉÒÔÔÚÍøÕ¾µÄÈκεط½ÔÙ´ÎʹÓá£
¼¼ÊõÒªµã
±¾ÊµÀý½éÉÜÈçºÎÔÚASP.NETÖд´½¨Óû§¿Ø¼þ¡¢ÈçºÎʹÓÃÓû§¿Ø¼þ£¬ÒÔ¼°ÈçºÎÔÚÓû§¿Ø¼þÖж¨Ò幫¿ªÊôÐÔµÄʵÏÖ·½·¨¡£
......
1£®URL´«Öµ
ÕâÊǾµäµÄ´«Öµ·½Ê½£¬ÕâÖÖ·½·¨µÄʹÓ÷dz£¼òµ¥£¬²»¹ýËù´«µÝµÄÖµÊÇ»áÏÔʾÔÚä¯ÀÀÆ÷µÄµØÖ·À¸Éϵģ¬¶øÇÒ²»ÄÜ´«µÝ¶ÔÏó¡£ËùÒÔÕâÖÖ·½·¨Ò»°ãÓÃÓÚ´«µÝµÄÖµÉÙÇÒ°²È«ÐÔÒªÇ󲻸ߵÄÇé¿öÏ¡£ÔÚ*.aspxÒ³Ã濪·¢ÖпÉÒÔʹÓ󬼶Á´½ÓÎı¾½øÐд«Öµ
2£®Session´«Öµ
ÕâÖÖ·½·¨½«Ã¿·ÝÊý¾Ý´æ´¢ÓÚ·þÎñÆ÷±äÁ¿ÖУ¬¿ÉÒÔ´«µÝ±È½Ï¶àµÄÊý¾Ý£¬²¢ ......
¼Ù¶¨ÓÐÒ»¸öProduct±í£¬×Ö¶ÎÓУ¨Id,Name,Quantity,...£©½«QuantityÁÐÓÃtextbox¸ñʽÀ´ÏÔʾ£º
Ê×ÏÈÔÚGridviewÖУ¬QuantityÁÐÒÔTemplateFieldÏÔʾ£¬ÆäËûµÄÁÐÊôÐÔÉèΪֻ¶Á£¬°ÑÏÔʾ¸ñʽÉèΪTextBox
<asp:TemplateField HeaderText="Quantity">
<ItemTemplate>
&nbs ......