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

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


Ïà¹ØÎĵµ£º

ASP.NETÒ³Ãæ¶ÔÏó

 Ò»¡¢Page Àà
      Page ÀàÓëÀ©Õ¹ÃûΪ .aspx µÄÎļþÏà¹ØÁª£»ÕâЩÎļþÔÚÔËÐÐʱ±»±àÒëΪ Page ¶ÔÏ󣬲¢±»»º´æÔÚ·þÎñÆ÷ÄÚ´æÖС£Èç¹ûÊÇʹÓôúÂëÒþ²Ø¼¼Êõ´´½¨ Web ´°ÌåÒ³£¬Çë´Ó¸ÃÀàÅÉÉú¡£
Àý£º£¨public partial class _Default : System.Web.UI.Page£©
      Page ¶ ......

asp.net¶ÔͼƬµÄ¶Áд

 Ð´Í¼Æ¬c:\1.jpgµ½±ícinfoÖÐ
private static void AddCinfo()
    {
        string strSql = "insert into cinfo (srvtitle,csttitle,introduction,logo) values
(@srvtitle,@csttitle,@introduction,@logo)";
        S ......

ASP.NETµÄÍøÒ³´úÂëÄ£Ðͼ°ÉúÃüÖÜÆÚ

µÚ4Õ  ASP.NETµÄÍøÒ³´úÂëÄ£Ðͼ°ÉúÃüÖÜÆÚ
´Ó±¾Õ¿ªÊ¼£¬¾Í½øÈëÁËASP.NETÓ¦ÓóÌÐò¿ª·¢µÄÊÀ½ç¡£ÔÚÁ˽âÁËC#µÄ½á¹¹£¬ÒÔ¼°ÃæÏò¶ÔÏóµÄ¸ÅÄîºó£¬¾Í¿ÉÒÔ´ÓÃæÏò¶ÔÏóµÄ˼Ï뿪·¢ASP.NETÓ¦ÓóÌÐò¡£ÔÚASP.NETÖУ¬Äܹ»Ê¹ÓÃÃæÏò¶ÔÏóµÄ˼ÏëºÍÈí¼þ¿ª·¢ÖеÄһЩ˼Ï룬ÀýÈç·â×°¡¢ÅÉÉú¡¢¼Ì³ÐÒÔ¼°¸ß¼¶µÄÉè¼ÆģʽµÈ¡£±¾ÕÂÊ×ÏȽéÉÜASP.NETÖÐ×îÖ ......

[ת]ASP.NET¶àƵµÀÍøÕ¾¼Ü¹¹ÐĵÃ

asp.net¶àƵµÀÍøÕ¾¿ª·¢¼Ü¹¹Ç³Îö http://www.cnblogs.com/Kenny-Jiang/archive/2007/07/31/837900.html ±³¾°£º
        ÎÒÃÇ´ò¿ªÃÅ»§Íøվʱ£¬ÍùÍù»á¿´µ½ºÜ¶àÅÅÁнôÃܵÄƵµÀÁÐ±í£¬Èç¡°ÐÂÎÅ¡±¡¢¡°²Æ¾­¡±¡¢¡°ÓéÀÖ¡±µÈ¡£ÆµµÀΪÍøÕ¾ÌṩÁË·½±ãµÄµ¼º½¹¦ÄÜ¡£
ÄÚÈÝÃèÊö£º
&# ......
© 2009 ej38.com All Rights Reserved. ¹ØÓÚE½¡ÍøÁªÏµÎÒÃÇ | Õ¾µãµØͼ | ¸ÓICP±¸09004571ºÅ