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

asp.netÖÐCookiesµÄ²Ù×÷

¡¡¡¡ÓÉÓÚÓõÄÊÇVPSÖ÷»ú£¬²»ÖªµÀɶԭÒòSESSION×ÜÊǶªÊ§£¬ÎÞÄλ»Cookies¡£
¡¡¡¡²éÒ»ÏÂMSDN£¬ÔÚASP.NETÓÐÁ½¸öCOOKIES£¬Response.CookiesºÍRequest.Cookies£¬ÎÞÂÛÓÃÄĸö¶¼²»ÐУ¬Ìí¼Ó½øÈ¥ºó¾Í¶ÁÈ¡²»µ½
ºóÀ´·¢ÏÖͨ¹ýResponse.CookiesÌí¼Ó¡¢Request.Cookies¶ÁÈ¡²ÅÐС£ÏÂÃæÊÇÌí¼Ó¡¢¶ÁÈ¡¡¢É¾³ýµÄ´úÂ룺
//Ìí¼Ó
HttpCookie c = new HttpCookie( "user","demo" );
Response.Cookies.Add( c );
//¶ÁÈ¡
HttpCookie c = Request.Cookies["user"];
string userid=c.Value;
//ɾ³ý,ÉèÖùýÆÚʱ¼äΪµ±Ç°ÈÕÆÚµÄÇ°Á½Ì죬Æäʵǰһ·ÖÖÓÒ²¿ÉÒÔ
HttpCookie c = Request.Cookies["user"];
c.Expires = DateTime.Now.AddDays(-2);
Response.Cookies.Add(c);
¼Ç¼һÏ£¬·ÀÖ¹ÒÔºóÍü¼Ç¡£


Ïà¹ØÎĵµ£º

ASP.NET MVC ¿ò¼Ü

¹ýÈ¥µÄ¼¸ÄêÀºÜ¶àÈËÒªÇóASP.NETµÄÒ»¼þÊÂÇé¾ÍÊǶÔʹÓûùÓÚmodel-view-controller£¨Ä£ÐÍ-ÊÓͼ-¿ØÖÆÆ÷,¼ò³ÆMVC£©¼Ü¹¹À´¿ª·¢webÓ¦ÓõÄÄÚÖÃÖ§³Ö¡£
ÉϸöÖÜÄ©ÔÚAustin¾ÙÐеÄAlt.NET´ó»áÉÏ£¬ÎÒÊ״ζÔÎÒµÄÍŶÓÕýÔÚ¿ª·¢µÄÐÂASP.NET MVC ¿ò¼Ü×÷ÁËÒ»¸ö¹«¿ªµÄÑÝʾ¡£Äã¿ÉÒÔÔÚScott HanselmanÕâÀïµÄ²©¿Í
ÉϹۿ´ÎҵĽ²×ùµÄ¼Ïñ¡£
ÎÒÃ ......

ASP.NET ʾÀý AJAX Ó¦ÓóÌÐò


      ±¾½Ì³Ì´´½¨Ê¹Óà ASP.NET µÄ AJAX ¹¦ÄܵĻù±¾Ê¾ÀýÓ¦ÓóÌÐò¡£Äú¿ÉÒÔÁ˽⵽ÓÐ¹Ø ASP.NET µÄ AJAX ¹¦Äܵĸü¶àÐÅÏ¢£¬½«ÖªµÀÕâЩ¹¦ÄÜÖ¼ÔÚ½â¾öÄÄЩ¼¼ÊõÎÊÌ⣬ÒÔ¼°ÒÔϽéÉÜÐÔÎĵµ½«Éæ¼°ÄÄЩÖØÒªµÄ AJAX ×é¼þ£º
·ASP.NET AJAX Overview
·Ìí¼Ó AJAX ºÍ¿Í»§¶Ë¹¦ÄÜ
ÔÚ±¾½Ì³ÌÖУ¬Äú½« ......

Óʼþ·¢ËͿؼþjmailʹÓ÷½·¨Ö®ASP.NETʾÀý

    ×¼±¸¹¤×÷ºÍWinForm³ÌÐòÖÐÓ¦ÓõIJ¶à£º
    1.Ê×ÏÈÏÂÔØjmail¿Ø¼þ£¬È»ºó°²×°£¨Æäʵ²»°²×°Ò²ÐУ¬Ö»ÒªÄãÄÜÕÒµ½jmail.dllÎļþ£¬È»ºó×¢²á¸ÃdllÎļþ¡£ÕâÀï²»Ö§³ÖÉÏ´«¸½¼þ£¬·ñÔòÎҾͰÑÎÒÏÂÔصĴ«ÉÏÀ´ÁË£©£¬¸½ÉÏÊÖ¹¤×¢²áËüµÄÅú´¦Àí£º
echo off
copy jmail.dll C:\windows\system32
regsvr32 ......

ASP.NETÇå³ýÒ³Ã滺´æµÄ·½·¨

ASP.NETÇå³ýÒ³Ã滺´æ
     (1)   Response.Buffer = true;
             Response.ExpiresAbsolute = System.DateTime.Now.AddSeconds(-1);
             Res ......

asp.net session¶ªÊ§

·¢²¼ÖÐÓöµ½ÁËÁ½¸öÎÊÌâ
Ò»¡£session »á¶Ìʱ¼ä×Ô¶¯Ïûʧ
½â¾ö°ì·¨
1¡£ÔÚwww.google.comÖвésession ¶ªÊ§
2¡£ÔÚWindow·þÎñÖн«ASP.NET State Service Æô¶¯¡£
3¡£ÐÞ¸Äweb.config
 <system.web>
  add  <sessionState mode="StateServer" timeout="60"/>
¶þ¡£sql server ³¬¹ý×î´óÁ¬½Ó³ØÊý ......
© 2009 ej38.com All Rights Reserved. ¹ØÓÚE½¡ÍøÁªÏµÎÒÃÇ | Õ¾µãµØͼ | ¸ÓICP±¸09004571ºÅ