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

ASP.NET

      ÿ´Î½«ÍøÒ³·¢Ë͵½·þÎñÆ÷ʱ£¬¶¼»á´´½¨ÍøÒ³ÀàµÄÒ»¸öÐÂʵÀý¡£ÔÚ´«Í³µÄ Web ±à³ÌÖУ¬Õâͨ³£Òâζ×ÅÔÚÿһ´ÎÍù·µÐгÌÖУ¬Óë¸ÃÒ³¼°¸ÃÒ³ÉϵĿؼþÏà¹ØÁªµÄËùÓÐÐÅÏ¢¶¼»á¶ªÊ§¡£ÀýÈ磬Èç¹ûÓû§½«ÐÅÏ¢ÊäÈëµ½Îı¾¿ò£¬¸ÃÐÅÏ¢½«ÔÚ´Óä¯ÀÀÆ÷»ò¿Í»§¶ËÉ豸µ½·þÎñÆ÷µÄÍù·µÐгÌÖжªÊ§¡£
ΪÁ˽â¾ö´«Í³µÄ Web ±à³ÌµÄ¹ÌÓÐÏÞÖÆ£¬ASP.NET °üÀ¨Á˼¸¸öÑ¡Ï¿É°ïÖúÄú°´Ò³±£ÁôÊý¾ÝºÍÔÚÕû¸öÓ¦ÓóÌÐò·¶Î§ÄÚ±£ÁôÊý¾Ý¡£ÕâЩ¹¦ÄÜÈçÏÂËùʾ£º
·ÊÓͼ״̬¡¢¿Ø¼þ״̬¡¢Òþ²ØÓò¡¢Cookie¡¢²éѯ×Ö·û´®
·Ó¦ÓóÌÐò״̬¡¢»á»°×´Ì¬¡¢ÅäÖÃÎļþÊôÐÔ
ÊÓͼ״̬¡¢¿Ø¼þ״̬¡¢Òþ²ØÓò¡¢Cookie ºÍ²éѯ×Ö·û´®¾ù»áÉæ¼°ÒÔ²»Í¬·½Ê½½«Êý¾Ý´æ´¢µ½¿Í»§¶ËÉÏ¡£¶øÓ¦ÓóÌÐò״̬¡¢»á»°×´Ì¬ºÍÅäÖÃÎļþÊôÐÔ¶¼½«Êý¾Ý´æ´¢µ½·þÎñÆ÷ÉϵÄÄÚ´æÖС£Ã¿¸öÑ¡ÏÓв»Í¬µÄÓŵãºÍȱµã£¬¾ßÌåÈ¡¾öÓÚÏàÓ¦µÄ·½°¸¡£
 
Ò»¡¢»ùÓÚ¿Í»§¶ËµÄ״̬¹ÜÀíÑ¡Ïî
ÏÂÃæ¸÷½ÚÃèÊöһЩ״̬¹ÜÀíÑ¡ÏÕâЩѡÏîÉæ¼°ÔÚÒ³Öлò¿Í»§¶Ë¼ÆËã»úÉÏ´æ´¢ÐÅÏ¢¡£¶ÔÓÚÕâЩѡÏÔÚÍù·µÐг̼䲻»áÔÚ·þÎñÆ÷ÉÏά»¤ÈκÎÐÅÏ¢¡£
1¡¢ÊÓͼ״̬
ViewState ÊôÐÔÌṩһ¸ö×Öµä¶ÔÏó£¬ÓÃÓÚÔÚ¶ÔͬһҳµÄ¶à¸öÇëÇóÖ®¼ä±£ÁôÖµ¡£ÕâÊÇÒ³ÓÃÀ´ÔÚÍù·µÐгÌÖ®¼ä±£ÁôÒ³ºÍ¿Ø¼þÊôÐÔÖµµÄĬÈÏ·½·¨¡£
ÔÚ´¦Àíҳʱ£¬Ò³ºÍ¿Ø¼þµÄµ±Ç°×´Ì¬»áÉ¢ÁÐΪһ¸ö×Ö·û´®£¬²¢ÔÚÒ³Öб£´æΪһ¸öÒþ²ØÓò»ò¶à¸öÒþ²ØÓò£¨Èç¹û´æ´¢ÔÚ ViewState ÊôÐÔÖеÄÊý¾ÝÁ¿³¬¹ýÁË MaxPageStateFieldLength ÊôÐÔÖеÄÖ¸¶¨Öµ£©¡£µ±½«Ò³»Ø·¢µ½·þÎñÆ÷ʱ£¬Ò³»áÔÚÒ³³õʼ»¯½×¶Î·ÖÎöÊÓͼ״̬×Ö·û´®£¬²¢»¹Ô­Ò³ÖеÄÊôÐÔÐÅÏ¢¡£
Ò²¿ÉÒÔʹÓÃÊÓͼ״̬À´´æ´¢Öµ¡£
 
2¡¢¿Ø¼þ״̬
ÓÐʱ£¬ÎªÁËÈÿؼþÕý³£¹¤×÷£¬ÄúÐèÒª°´Ë³Ðò´æ´¢¿Ø¼þ״̬Êý¾Ý¡£ÀýÈ磬Èç¹û±àдÁËÒ»¸ö×Ô¶¨Òå¿Ø¼þ£¬ÆäÖÐʹÓÃÁ˲»Í¬µÄÑ¡ÏÀ´ÏÔʾ²»Í¬µÄÐÅÏ¢¡£ÎªÁËÈÃ×Ô¶¨Òå¿Ø¼þ°´Ô¤Æڵķ½Ê½¹¤×÷£¬¸Ã¿Ø¼þÐèÒªÖªµÀÔÚÍù·µÐгÌÖ®¼äÑ¡ÔñÁËÄĸöÑ¡Ï¡£¿ÉÒÔʹÓà ViewState ÊôÐÔÀ´ÊµÏÖÕâһĿµÄ£¬²»¹ý£¬¿ª·¢ÈËÔ±¿ÉÒÔÔÚÒ³¼¶±ð¹Ø±ÕÊÓͼ״̬£¬´Ó¶øʹ¿Ø¼þÎÞ·¨Õý³£¹¤×÷¡£ÎªÁ˽â¾ö´ËÎÊÌ⣬ASP.NET Ò³¿ò¼ÜÔÚ ASP.NET Öй«¿ªÁËÒ»ÏîÃûΪ¿Ø¼þ״̬µÄ¹¦ÄÜ¡£
ControlState ÊôÐÔÔÊÐíÄú±£³ÖÌض¨ÓÚij¸ö¿Ø¼þµÄÊôÐÔÐÅÏ¢£¬ÇÒ²»ÄÜÏñ ViewState ÊôÐÔÄÇÑù±»¹Ø±Õ¡£
 
3¡¢Òþ²ØÓò
ASP.NET ÔÊÐíÄú½«ÐÅÏ¢´æ´¢ÔÚ HiddenField ¿Ø¼þÖУ¬´Ë¿Ø¼þ½«³ÊÏÖΪһ¸ö±ê×¼µÄ HTML Òþ²ØÓò¡£Òþ²ØÓòÔÚä¯ÀÀÆ÷Öв»ÒԿɼûµÄÐÎʽ³ÊÏÖ£¬µ«Äú¿ÉÒÔ¾ÍÏñ¶Ô´ý±ê×¼¿Ø¼þÒ»ÑùÉèÖÃÆäÊôÐÔ¡£µ±Ïò·þÎñÆ÷Ì


Ïà¹ØÎĵµ£º

Asp.Net¼Ì³ÐʵÏÖÉí·ÝÑéÖ¤

 ÔÚASP.NETÍøÕ¾ÖÐÍøÕ¾¹ÜÀíºǫ́ÐèÒª¾­³£ÑéÖ¤Óû§Éí·Ý,ҪʵÏÖÕâÖÖ¹¦ÄܾͿÉÒÔÀûÓÃÄǸö¼Ì³Ð»úÖƺÍASP.NETµÄʼþ»úÖÆ.Ê×Ïȶ¨ÒåÒ»¸öÐèÒª½øÐÐÉí·ÝÑéÖ¤µÄBasePageÀà,¼Ì³Ð×ÔPageÀà,ÔÚBasePageÀàµÄ¹¹Ô캯ÊýÖж¨ÒåËüµÄ¼ÓÔØʼþµÄ´¦Àí´úÂë,ÕâÑùËùÓм̳Ð×ÔBasePageÀàµÄÒ³Ã涼ÄÜ×Ô¶¯Ö´ÐÐÉí·ÝÑéÖ¤£º
/// <summary>
/// ÑéÖ ......

asp.net½«gridviewÖеÄÆäÖÐÒ»ÁÐÓÃtextbox¸ñʽÀ´ÏÔʾ

  ¼Ù¶¨ÓÐÒ»¸öProduct±í£¬×Ö¶ÎÓУ¨Id,Name,Quantity,...£©½«QuantityÁÐÓÃtextbox¸ñʽÀ´ÏÔʾ£º
    Ê×ÏÈÔÚGridviewÖУ¬QuantityÁÐÒÔTemplateFieldÏÔʾ£¬ÆäËûµÄÁÐÊôÐÔÉèΪֻ¶Á£¬°ÑÏÔʾ¸ñʽÉèΪTextBox
<asp:TemplateField HeaderText="Quantity">
  <ItemTemplate>
  &nbs ......

ʲôÊÇASP.NET

 What is ASP.NET
ASP.NET is a unified Web development model that includes the services necessary for you to build enterprise-class Web applications with a minimum of coding. ASP.NET is part of the .NET Framework, and when coding ASP.NET applications you have access to classes in the .NET Frame ......

ASP.NETÒ³Ãæ¶ÔÏó

 Ò»¡¢Cookie ¸ÅÊö
1¡¢·½°¸
Cookie ÌṩÁËÒ»ÖÖÔÚ Web Ó¦ÓóÌÐòÖд洢Óû§Ìض¨ÐÅÏ¢µÄ·½·¨¡£ÀýÈ磬µ±Óû§·ÃÎÊÄúµÄÕ¾µãʱ£¬Äú¿ÉÒÔʹÓà Cookie ´æ´¢Óû§Ê×Ñ¡Ïî»òÆäËûÐÅÏ¢¡£µ±¸ÃÓû§ÔٴηÃÎÊÄúµÄÍøվʱ£¬Ó¦ÓóÌÐò±ã¿ÉÒÔ¼ìË÷ÒÔÇ°´æ´¢µÄÐÅÏ¢¡£
 
2¡¢±³¾°
      Cookie ÊÇһС¶ÎÎı¾ÐÅÏ¢£ ......
© 2009 ej38.com All Rights Reserved. ¹ØÓÚE½¡ÍøÁªÏµÎÒÃÇ | Õ¾µãµØͼ | ¸ÓICP±¸09004571ºÅ