asp.net ÐÔÄÜ
http://blog.csdn.net/chengking/archive/2005/10/27/518079.aspx
(Ò»).Ñ¡Ôñ»á»°×´Ì¬´æ´¢·½Ê½
ÔÚWebconfigÎļþÅäÖÃ:
<sessionState mode="???" stateConnectionString="tcpip=127.0.0.1:42424"
sqlConnectionString="data source=127.0.0.1;Trusted_Connection=yes"
cookieless="false" timeout="20"/>
Asp.netÓÐÈýÖÖ·½Ê½´æ´¢»á»°×´Ì¬ÐÅÏ¢:
1. ´æ´¢ÔÚ½ø³ÌÖÐ: ÊôÐÔmode = InProc
Ìص㣺 ¾ßÓÐ×î¼ÑµÄÐÔÄÜ£¬ËÙ¶È×î¿ì,µ«²»ÄÜ¿ç¶ą̀·þÎñÆ÷´æ´¢¹²Ïí.
2. ´æ´¢ÔÚ״̬·þÎñÆ÷ÖÐ: ÊôÐÔmode = "StateServer"
Ìصã: µ±ÐèÒª¿ç·þÎñÆ÷ά»¤Óû§»á»°ÐÅϢʱ£¬Ê¹Óô˷½·¨¡£
µ«ÊÇÐÅÏ¢´æ´¢ÔÚ״̬·þÎñÆ÷ÉÏ£¬Ò»µ©×´Ì¬·þÎñÆ÷³öÏÖ¹ÊÕÏ£¬ÐÅÏ¢½«¶ªÊ§
3. ´æ´¢ÔÚSql ServerÖÐ: ÊôÐÔmode="SqlServer"
Ìصã: ¹¤×÷¸ºÔØ»á±ä´ó£¬µ«ÐÅÏ¢²»»á¶ªÊ§.
²¹³äÒ»µã£º
I. ÓÉÓÚijЩҳÃæ²»ÐèÒª»á»°×´Ì¬£¬Ôò¿ÉÒÔ½«»á»°×´Ì¬½ûÓÃ:
´úÂëÈçÏ£º <%@ Page EnableSessionState="false" %>
II.Èç¹ûÒ³ÃæÐèÒª·ÃÎʻỰ±äÁ¿µ«²»ÔÊÐíÐÞ¸ÄËüÃÇ£¬¿ÉÒÔÉèÖÃÒ³Ãæ»á»°×´Ì¬ÎªÖ»¶Á:
´úÂëÈçÏ£º <%@ Page EnableSessionState="false" %>
ʹÓÃʱ¿ÉÒÔ¸ù¾Ý¾ßÌåÇé¿öÑ¡ÔñijÖÖ·½Ê½
(¶þ).ʹÓÃPage.IsPostBack
Page.IsPostBack±íʾÊÇ·ñÊÇ´Ó¿Í»§¶Ë·µ»ØµÄ. ³õ´ÎÔËÐÐʱ£¬²»ÊÇ´Ó¿Í»§¶Ë·µ»Ø£¬ËüµÄÖµ
Ϊfalse,µ±´¥·¢Ò³ÃæÉϵÄʼþ»òË¢ÐÂÒ³Ãæʱ£¬Page.IsPostBackÓÉÓÚÊǻط¢µÄ£¬Öµ±äΪtrue;
&n
Ïà¹ØÎĵµ£º
² Oracle9iµÄ°²×°£¬Çë²ÎÕÕ¹Ù·½µÄ°²×°ËµÃ÷¡£
² Oracle9i°²×°³É¹¦ÒÔºó£¬Ê¹ÓùÜÀíÔ±£¨Óû§Ãû£ºsys¡¢ÃÜÂ룺sys£©µÄÉí·ÝµÇ¼½øÈ¥£¬´´½¨Ò»¸öÓû§ddymis£¬ÃÜÂ룺ddymis,½ÇɫĬÈϸ³Óèdba¡£
² ......
»ñÈ¡ ASP.NET ÌṩµÄµ±Ç° Session ¶ÔÏó ( HttpSessionState Àà )¡£¸ÃÊôÐÔÌṩÓйص±Ç°ÇëÇóµÄ»á»°µÄÐÅÏ¢¡£Îª´Ó ASP.NET Ó¦ÓóÌÐòÇëÇóÒ³»òÎĵµµÄÿ¸öÓû§Î¬»¤Ò»¸ö Session ¶ÔÏó¡£µ±Óû§ÔÚÓ¦ÓóÌÐòÖдÓÒ»Ò³Òƶ¯µ½Áíһҳʱ£¬´æ´¢ÔÚ Session ¶ÔÏóÖеıäÁ¿²»»á±»·ÅÆú£»Ïà ......
Èç¹ûÄúµÄ Web Ó¦ÓóÌÐò°üÀ¨ÒªÔÚ¶à¸öÒ³Ö®¼ä¹²ÏíµÄ´úÂ룬Äú¿ÉÒÔ½«´úÂë±£´æÔÚ Web Ó¦ÓóÌÐò¸ùĿ¼ÏµÄÁ½¸öÌØÊâÎļþ¼Ð£¨Bin Îļþ¼ÐºÍ App_Code Îļþ¼Ð£©ÖеÄij¸öÎļþ¼ÐÖС£
Bin Îļþ¼Ð
¿ÉÒÔÔÚ Bin Îļþ¼ÐÖд洢±àÒëµÄ³ÌÐò¼¯£¬²¢ÇÒ Web Ó¦ÓóÌÐòÈÎÒâ´¦µ ......
×¢Òâ:
ÔÚʹÓÃFindControlʱ,Ò»¶¨ÒªÔÚ×îÌù½ü²éÕÒ¶ÔÏóµÄÍâ±ß¼ÓÉϸöÈÝÆ÷,Èç¹ûÄãÖ±½ÓÓÃthis.FindControl,»òPage.FindControlÄÇô¾Í»á¾³£³öÏÖ佫¶ÔÏóÉèÖõ½ÊµÀý
µÄ´íÎó,ËùÒÔ×îºÃ¼ÓÒ»¸öÈÝÆ÷,ÄÇôÕâÀï¼ÓµÄDIV¾ÍÊÇÒ»¸öÈÝÆ÷,ΪÁËÈÃFindControlÔÚIDΪ"TextBoxs"µÄDIVÄÚÈ¥ÕÒÃûΪcom1,com2,com3µÄTextBOx;
<div ......
asp.net¶àƵµÀÍøÕ¾¿ª·¢¼Ü¹¹Ç³Îö http://www.cnblogs.com/Kenny-Jiang/archive/2007/07/31/837900.html ±³¾°£º
ÎÒÃÇ´ò¿ªÃÅ»§Íøվʱ£¬ÍùÍù»á¿´µ½ºÜ¶àÅÅÁнôÃܵÄƵµÀÁÐ±í£¬Èç¡°ÐÂÎÅ¡±¡¢¡°²Æ¾¡±¡¢¡°ÓéÀÖ¡±µÈ¡£ÆµµÀΪÍøÕ¾ÌṩÁË·½±ãµÄµ¼º½¹¦ÄÜ¡£
ÄÚÈÝÃèÊö£º
......