Ò׽ؽØͼÈí¼þ¡¢µ¥Îļþ¡¢Ãâ°²×°¡¢´¿ÂÌÉ«¡¢½ö160KB

Asp.netÖд«ÖµµÄ·½Ê½

1£®URL´«Öµ
ÕâÊǾ­µäµÄ´«Öµ·½Ê½£¬ÕâÖÖ·½·¨µÄʹÓ÷dz£¼òµ¥£¬²»¹ýËù´«µÝµÄÖµÊÇ»áÏÔʾÔÚä¯ÀÀÆ÷µÄµØÖ·À¸Éϵģ¬¶øÇÒ²»ÄÜ´«µÝ¶ÔÏó¡£ËùÒÔÕâÖÖ·½·¨Ò»°ãÓÃÓÚ´«µÝµÄÖµÉÙÇÒ°²È«ÐÔÒªÇ󲻸ߵÄÇé¿öÏ¡£ÔÚ*.aspxÒ³Ã濪·¢ÖпÉÒÔʹÓ󬼶Á´½ÓÎı¾½øÐд«Öµ
2£®Session´«Öµ
ÕâÖÖ·½·¨½«Ã¿·ÝÊý¾Ý´æ´¢ÓÚ·þÎñÆ÷±äÁ¿ÖУ¬¿ÉÒÔ´«µÝ±È½Ï¶àµÄÊý¾Ý£¬²¢ÇÒ°²È«ÐԽϸߣ¬ËùÒÔ³£ÓÃÓÚÓû§Éí·ÝµÄÑéÖ¤¹¦ÄÜÖС£²»¹ý£¬Session±äÁ¿Èç¹û´æ´¢¹ý¶àµÄÊý¾Ý»áÏûºÄ¹ý¶àµÄ·þÎñÆ÷×ÊÔ´£¬±à³ÌÕßÔÚʹÓÃʱӦ¸ÃÉ÷ÖØ
3£®Cookie´«Öµ
CookieÊÇÒ»ÖֱȽÏÌØÊâµÄÊý¾Ý´æ´¢·½Ê½£¬ÒòΪÕâÖÖ·½Ê½½«Êý¾Ý´æ´¢ÓÚä¯ÀÀÓû§µÄµçÄÔÖУ¬ÒÔÎı¾ÎļþµÄÐÎʽ´æÔÚÓÚ´ÅÅÌÖС£ÕâÖÖ·½Ê½·Ç³£ÓÐÒâ˼£¬ºÜ¶àµÇ¼ϵͳ¾ÍÊÇÀûÓÃCookieʵÏÖÓû§×Ô¶¯µÇ¼¡£¼´Óû§µÇ¼һ´ÎµÄµÇ¼ÐÅÏ¢½«±»Ð´Èëµ½Óû§µçÄÔµÄCookieÎļþÖУ¬Ï´εǼʱ£¬ÍøÕ¾×Ô¶¯¶ÁÈ¡¸ÃCookieÍê³ÉÉí·ÝÑéÖ¤¡£Í¨¹ýCookie´«µÝÊý¾ÝËäÈ»ºÜ·½±ã£¬±£´æʱ¼ä¿ÉÒÔ×ÔÓÉÉèÖ㬵«ÊÇ°²È«ÐÔ²»¸ß£¬±à³ÌÕß²»Ó¦¹ýÓÚÒÀÀµCookie£¬¶øÓ¦²ÉÓýáºÏµÄ·½Ê½Íê³ÉÃô¸ÐÊý¾ÝµÄ´æ´¢
4£®Server.Transfer´«Öµ
Õâ¸ö·½·¨µÄ²½ÖèÏà¶Ô½Ï¶à£¬Ê¹Óø÷½·¨±à³ÌÕß¿ÉÒÔÔÚÁíÒ»¸öÒ³ÃæÒÔ¹«¿ª¶ÔÏóÊôÐԵķ½Ê½À´´æÈ¡Öµ£¬Ê¹ÓÃÕâÖÖ·½·¨ÊÇÃæÏò¶ÔÏó
5£®Application´«Öµ
ÑϸñµØ˵Ӧ¸ÃÊÇͨ¹ýHttpApplication¶ÔÏóÔÚ·þÎñÆ÷¶ËÉú³ÉÒ»¸ö״̬±äÁ¿À´´æ´¢ËùÐèµÄÐÅÏ¢£¬¸ÃHttpApplication¶ÔÏó±äÁ¿µÄ¿ÉÓ÷¶Î§¸²¸ÇÕû¸öWEBÓ¦ÓóÌÐò¡£ËùÒԸöÔÏóÒ»°ã´æ´¢Ò»Ð©Òª¹«²¼µÄÐÅÏ¢£¬ÈçÔÚÏßÈËÊýµÈ£¬¶ø¶ÔÓÚÄÇЩÉæ¼°Óû§¸öÈ˵ÄÃô¸ÐÊý¾ÝÔò²»ÓÃÕâÖÖ·½·¨´æ´¢¡£HttpApplication¶ÔÏóÓÐÁ½¸ö³£Óõķ½·¨£¬¼´LockºÍUnLock·½·¨£¬¿ÉÓÃÓÚ´¦Àí¶à¸öÓû§¶Ô´æ´¢ÔÚApplication±äÁ¿ÖеÄÊý¾Ý½øÐÐдÈëµÄÎÊÌâ¡£Lock·½·¨Ëø¶¨È«²¿µÄApplication±äÁ¿£¬´Ó¶ø×èÖ¹ÆäËûÓû§ÐÞ¸ÄApplication¶ÔÏóµÄ±äÁ¿Öµ£¬UnLock·½·¨Ôò½â³ý¶ÔHttpApplication¶ÔÏó±äÁ¿µÄËø¶¨¡£
×¢Ò⣺ËäȻʹÓ÷½Ê½ºÍSessionÏàËÆ£¬µ«ÊÇSessionÊǶÔÓÚÿ¸öµ¥¶ÀµÄÓû§£¬µ±¸ÃÓû§¹Ø±Õä¯ÀÀÆ÷£¬ÔòSessionʧЧ¡£HttpApplication¶ÔÏó´æ´¢µÄ±äÁ¿ÊÇÕë¶ÔËùÓзÃÎʳÌÐòµÄÓû§£¬¼´Ê¹ÓÐÓû§¹Ø±ÕÁËä¯ÀÀÆ÷£¬±äÁ¿µÄÖµ²»»á¶ªÊ§
6.ViewState
ÔÚÒ»¸öÒ³ÃæµÄʼþ·¢ÉúÖ®ºó£¬Ò³Ãæ¿ÉÄܱ»Ë¢Ð£¬Èç¹û¶¨ÒåÈ«¾Ö±äÁ¿»á±»ÇåÁ㣡Õâ¸öʱºò¾Í»áÓõ½ViewState£¬¼´ViewStateÊDZ¾Ò³Ã溯ÊýÖ±½ÓµÄ´«Öµ£¡ËüÊDZ£´æÔÚä¯ÀÀÆ÷µÄHtml´úÂëÖУ¬Ëæ×ÅÒ³ÃæµÄ¹Ø±Õ£¬ÖµÏûʧ£¡
½«ÉÙÁ¿ÇëÇóÌض¨µÄÊý¾Ý´æ´¢ÔÚViewStateÖУ¬Êý¾Ý´Ó·þÎñÆ÷¶Ì·¢Ë͵½¿Í»§¶Ë²¢·µ»Øµ½µ±Ç°Ò³Ãæ¡£


Ïà¹ØÎĵµ£º

asp.net web serviceʵÀý

×î½üÏëÑо¿ÏÂweb service,ÄκÎÕÒ±éÍøÂ磬¶¼Êǽ²Ð©¶¨ÒåÐԵĶ«Î÷£¬·º·º¶ø̸£¬ÎÒ¿´µÄÒ»Öª°ë½â£¬²»µÃÒªÁì¡£²»¹ý½ñÌì×ÜËãÓеãÊÕ»ñ£¬Ð´ÁË ¸öСµÄweb serviceÀý×Ó£¬¾ÍÊÇÅжÏÒ»¸öÊýÊDz»ÊÇÖÊÊý¡£»¹ÊÇÀÏ»°£¬¸ø´ó¼ÒÆðÅ×שÒýÓñµÄ×÷Óã¬Ö»ÊǸø´ó¼Ò½²½âÈçºÎ¿ª·¢×î¼òµ¥µÄweb service³ÌÐò ¡£Ö»ÒªÈëÁËÃż÷£¬ÒÔºóµÄ·¾Í¿ÉÒÔ×Ô¼º×ßÁË¡£
µÚÒ»£¬ ......

asp.net ѧϰ×ÊÔ´

 asp.net ѧϰ×ÊÔ´
¹ØÓÚ´ËÖ÷Ìâ½öÓÐ 1 ¸öÌû×Ó - Ê÷ʽä¯ÀÀ
 astin...@gmail.com
 9ÔÂ26ÈÕ ÉÏÎç12ʱ41·Ö   ÏÔʾѡÏî
·¢¼þÈË£º astin...@gmail.com - ²éÕÒ´Ë×÷ÕßµÄÌû×Ó
ÈÕÆÚ£ºSun, 25 Sep 2005 09:41:54 -0700
µ±µØʱ¼ä£º2005Äê9ÔÂ26ÈÕ(ÐÇÆÚÒ») ÉÏÎç12ʱ41·Ö
Ö÷Ì⣺asp.net ѧϰ×ÊÔ´
´ð¸´×÷Õ ......

asp.net ÐÔÄÜ

 http://blog.csdn.net/chengking/archive/2005/10/27/518079.aspx
(Ò»).Ñ¡Ôñ»á»°×´Ì¬´æ´¢·½Ê½
    ÔÚWebconfigÎļþÅäÖÃ:
    <sessionState mode="???" stateConnectionString="tcpip=127.0.0.1:42424"
         sqlConnectionString ......

Èý²½ÊµÏÖASP.NET 3.5ÖÐʹÓÃLog4Net

 ×÷Õߣº°½Ê¿Î°
Ò»¡¢ÏîÄ¿ÖÐÒýÓÃ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ÍøÕ¾¿ª·¢¼Ü¹¹Éè¼ÆÒªÇó


ÍøÕ¾ÎļþÃû£º
1¡¢ ÍøÕ¾ÎļþÃûÒÔ±ê×¼Ó¢Îĵ¥´ÊÃèÊöÒµÎñÄÚÈÝ¡£Èç¹û1¸öÓ¢Îĵ¥´ÊÎÞ·¨ÃèÊö£¬¿ÉÒÔÔö¼Ó2¸ö»òÕß3¸ö£¬µ«¾¡Á¿ÎªÍêÈ«µ¥´Ê£¬ÀýÈçarticle.aspx/ articleView.aspx / articleList.aspx µÈ¡£
2¡¢ ÎļþÃû¾¡Á¿²»ÓÃÊý×ÖÃèÊö¡£
3¡¢ ÎļþÃû¾¡Á¿²»ÄÜÌ«³¤£¬ÒÔ²»³¬¹ý20¸ö×ÖĸΪÒË¡£
4¡¢ ͼƬÎļþÃû¾¡Á¿ÃèÊöͼƬÄÚÈÝ·ÖÀà¡£¾¡Á¿ ......
© 2009 ej38.com All Rights Reserved. ¹ØÓÚE½¡ÍøÁªÏµÎÒÃÇ | Õ¾µãµØͼ | ¸ÓICP±¸09004571ºÅ