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

ASP.NET State Service

   WebÀï¼ÓÈë<sessionState cookieless="false" mode="StateServer" timeout="60" stateNetworkTimeout="3600" sqlCommandTimeout="3600"/>ºó±ØÐ루cmdÀïÔËÐÐ:Net Start aspnet_state£©²Å¿ÉÒÔÉèÖÃsessionÖµ¡£
ÕâÒ»¶Î¾ÍÊÇÅäÖÃÓ¦ÓóÌÐòÊÇÈçºÎ´æ´¢SessionÐÅÏ¢µÄÁË¡£ÎÒÃÇÒÔϵĸ÷ÖÖ²Ù×÷Ö÷ÒªÊÇÕë¶ÔÕâÒ»¶ÎÅäÖÃÕ¹¿ª¡£ÈÃÎÒÃÇÏÈ¿´¿´ÕâÒ»¶ÎÅäÖÃÖÐËù°üº¬µÄÄÚÈݵÄÒâ˼¡£sessionState½ÚµãµÄÓï·¨ÊÇÕâÑùµÄ£º    
         
      <sessionState   mode="Off|InProc|StateServer|SQLServer"    
        cookieless="true|false"    
        timeout="number   of   minutes"    
        stateConnectionString="tcpip=server:port"    
        sqlConnectionString="sql   connection   string"    
        stateNetworkTimeout="number   of   seconds"    
      />    
         
         
      ±ØÐëÓеÄÊôÐÔÊÇ    
         
      ÊôÐÔ   Ñ¡Ïî   ÃèÊö    
      mode   ÉèÖý«SessionÐÅÏ¢´æ´¢µ½ÄÄÀï    
        Off   ÉèÖÃΪ²»Ê¹ÓÃSession¹¦ÄÜ    
        InProc   ÉèÖÃΪ½«Session´æ´¢ÔÚ½ø³ÌÄÚ£¬¾ÍÊÇASPÖеĴ洢·½Ê½£¬ÕâÊÇĬÈÏÖµ¡£    
        StateServer   ÉèÖÃΪ½«Session´æ´¢ÔÚ¶ÀÁ¢µÄ״̬·þÎñÖС£    
        SQLServer   ÉèÖý«Session´æ´¢ÔÚSQL   ServerÖС£    
         
      ¿ÉÑ¡µÄÊôÐÔÊÇ£º    
         
      ÊôÐÔ   Ñ¡Ïî   ÃèÊö    
      cookieless   ÉèÖÿͻ§¶ËµÄSessionÐÅÏ¢´æ´¢µ½ÄÄÀï  


Ïà¹ØÎĵµ£º

ASP.NET¿çÒ³Ãæ´«Öµ¼¼ÇÉ×ܽá

1.ʹÓÃQueryString±äÁ¿
QueryStringÊÇÒ»Öַdz£¼òµ¥µÄ´«Öµ·½Ê½£¬Ëû¿ÉÒÔ½«´«Ë͵ÄÖµÏÔʾÔÚä¯ÀÀÆ÷µÄµØÖ·À¸ÖС£Èç¹ûÊÇ´«µÝÒ»¸ö»ò¶à¸ö°²È«ÐÔÒªÇ󲻸߻òÊǽṹ¼òµ¥µÄÊýֵʱ£¬¿ÉÒÔʹÓÃÕâ¸ö·½·¨¡£µ«ÊǶÔÓÚ´«µÝÊý×é»ò¶ÔÏóµÄ»°£¬¾Í²»ÄÜÓÃÕâ¸ö·½·¨ÁË¡£ÏÂÃæÊÇÒ»¸öÀý×Ó£º
a.aspxµÄC#´úÂë
private void Button1_Click(object sender, Sy ......

Asp.NETÉú³É¾²Ì¬Ò³Ãæ²¢·ÖÒ³

ÒòΪ¹«Ë¾µÄ²úÆ·ÓÃasp¿ª·¢£¬ Ç°Ò»¶Îʱ¼äÓÃaspдÁËÒ»¸öÉú³É¾²Ì¬Ò³Ãæ²¢·ÖÒ³µÄ³ÌÐò£¬µ«ÔµÓÚ¶Ô.netµÄÈÈ°®£¬Ð´ÁËÕâ¸ö.netϵÄÉú³É¾²Ì¬Ò³Ãæ²¢·ÖÒ³µÄ³ÌÐò¡£
Ö÷ÒªµÄÔ­Àí¾ÍÊÇÌ滻ģ°åÀïµÄÌØÊâ×Ö·û¡£
1¡¢¾²Ì¬Ä£°åÒ³Ãæ template.html£¬Ö÷ÒªÊǶ¨ÒåÁËһЩÌØÊâ×Ö·û£¬ÓÃÀ´±»Ìæ»»¡£
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Tran ......

·ÀÖ¹ASP.NET°´Å¥¶à´ÎÌá½»´úÂë

1.<asp:Button ID="btnSumbit" runat="server" UseSubmitBehavior="false" OnClientClick="this.value='Sumbit';this.disabled=true; " Text="Sumbit" OnClick="btnSumbit_Click" />
2.¶Ô“Ìí¼Ó”¡¢“Ìá½»”¡¢“±£´æ”¡¢“¸üДµÈ°´Å¥ÐèÒª¶ÔÊý¾Ý¿â½øÐÐд²Ù×÷µÄ°´Å¥£¬Ò»¶¨Ò ......

asp.net Îļþ¼Ð²Ù×÷£¨´´½¨£¬É¾³ý£¬±éÀú)

Ò»¡¢´´½¨Îļþ¼Ð
#region ´´½¨Îļþ¼Ð
    /// <summary>
    /// Self_Function:´´½¨Îļþ¼Ð
    /// </summary>
    /// <param name="path">´´½¨Îļþ¼ÐµÄ·¾¶</param>
    /// <param name="noyes">Òþ²ØÎ ......

ASP.NET³£Óü¼ÇÉ

1.´ò¿ªÐµĴ°¿Ú²¢´«ËͲÎÊý£º
response.write("<script>window.open('*.aspx?id="+this.DropDownList1.SelectIndex+"&id1="++"')</script>")
½ÓÊÕ²ÎÊý£º
string a = Request.QueryString("id");
string b = Request.QueryString("id1");
2.Ϊ°´Å¥Ìí¼Ó¶Ô»°¿ò
Button1.Attributes.Add("onclick","return ......
© 2009 ej38.com All Rights Reserved. ¹ØÓÚE½¡ÍøÁªÏµÎÒÃÇ | Õ¾µãµØͼ | ¸ÓICP±¸09004571ºÅ