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

ÇóASP.NETÖÐsessionµÄÓ÷¨ - .NET¼¼Êõ / ASP.NET

ÔõÑùÉèÖÃsessionÖÐÄÚÈݱ£´æÊ±¼ä£¬session µÄ¾ßÌåÓ÷¨ÒÔ¼°ËüÓëcookie,ApplicationµÄÇø±ð£¡
Session.Timeout = 600; //ʱ¼ä

Session.Content["aa"] = Òª±£´æµÄÖµ£»
È¡³öÖµ = Session.Content["aa"] .Tostring();

SessionÊDZ£´æÔÚ·þÎñÆ÷¶ËµÄ¡£
cookieÊDZ£´æÔÚ¿Í»§¶ËµÄ¡£
ApplicationÊÇÈ«¾ÖµÄ£¬ËùÓÐÓû§¹²Ïí¡£

ÔÚIISµÄÉèÖÃÁËÉè¡£
sessionÊǶԴËÓû§µÇ¼ºóµ½Í˳öǰ£¬ÓÐЧ£»APPLICATIONÊÇÕû¸öÓ¦Ó÷¶Î§£¬ËùÓÐÓû§ÓÐЧ£»COOKIEÊǵ±Ç°Ò³Ãæ

wo kao!

1.application¶ÔÏó 
  applicationÓÃÓÚ±£´æËùÓÐÓû§µÄ¹«¹²µÄÊý¾ÝÐÅÏ¢,¼ÙÈçʹÓÃapplication¶ÔÏó,Ò»¸öÐèÒª¿¼ÂǵÄÎÊÌâÊÇÈκÎд²Ù×÷¶¼ÒªÔÚ application_onstartʼþ(global.asax)ÖÐÍê³É.¾¡¹ÜʹÓÃapplication.lockºÍ applicaiton.unlock·½·¨À´±ÜÃâд²Ù×÷µÄͬ²½,µ«ÊÇËü´®Ðл¯Á˶Ôapplication¶ÔÏóµÄÇëÇó,µ±ÍøÕ¾·ÃÎÊÁ¿´óµÄʱºò»á²úÉúÑÏÖØµÄÐÔ ÄÜÆ¿¾±.Òò´Ë×îºÃ²»ÒªÓô˶ÔÏó±£´æ´óµÄÊý¾Ý¼¯ºÏ. 
  2.session¶ÔÏó
  sessionÓÃÓÚ±£´æÃ¿¸öÓû§µÄרÓÃÐÅÏ¢.ËýµÄÉú´æÆÚÊÇÓû§³ÖÐøÇëÇóʱ¼äÔÙ¼ÓÉÏÒ»¶Îʱ¼ä(Ò»°ãÊÇ20·ÖÖÓ×óÓÒ).s
essionÖеÄÐÅÏ¢±£´æÔÚweb·þÎñÆ÷ÄÚÈÝÖÐ,±£´æµÄÊý¾ÝÁ¿¿É´ó¿ÉС.µ±session³¬Ê±»ò±»¹Ø±Õʱ½«×Ô¶¯Êͷű£´æµÄÊý¾ÝÐÅÏ¢.ÓÉÓÚÓû§Í£Ö¹Ê¹ÓÃÓ¦Óà ³ÌÐòºóËüÈÔÈ»ÔÚÄÚ´æÖб£³ÖÒ»¶Îʱ¼ä,Òò´ËʹÓÃsession¶ÔÏóʹ±£´æÓû§Êý¾ÝµÄ·½·¨Ð§ÂʺܵÍ.¶ÔÓÚСÁ¿µÄÊý¾Ý,ʹÓÃsession¶ÔÏ󱣴滹ÊÇÒ»¸ö²»´í µÄÑ¡Ôñ.ʹÓÃsession¶ÔÏó±£´æÐÅÏ¢µÄ´úÂëÈçÏÂ:
//´æ·ÅÐÅÏ¢
session["username"]="zhouhuan";
//¶ÁÈ¡Êý¾Ý
string username=session["username"].tostring();

&nbs


Ïà¹ØÎÊ´ð£º

asp.netµ¼³öEXCELÎÊÌ⣡ - .NET¼¼Êõ / ASP.NET

C# code:

SqlConnection conn = CsDB.sqlcon();
SqlDataAdapter da = new SqlDataAdapter("select fwCoding from bjmuma_fwCoding where OrderNumber='" + Order + & ......

asp.net Ò³ÃæÏÞʱÌá½» ÈçºÎʵÏÖ - .NET¼¼Êõ / ASP.NET

1.asp.net×öµÄÒ»¸ö´ðÌâÒ³Ãæ£¬ÈçºÎʵʱÏÞʱºó×Ô¶¯Ìá½»£¬Çë´ó¼Ò¸øµã˼·
ÏÞʱµÄʱ¼äÐÅÏ¢´æ·ÅÔÚÊý¾Ý¿âÖÐ
2.Èç¹û´ðÌâʱ¼äÉèÖõĽϳ¤£¬ÈçºÎ·½Ê½session³¬Ê±ºóÒ³ÃæÎÞЧ
лл
ÓÃjs·½·¨À´¿ØÖÆ
»Ø¸´ÄÚÈÝÌ«¶ÌÁË¡£¡£

js ......

ÇóÖúasp.netͼƬÉÏ´« - .NET¼¼Êõ / ASP.NET

¾ÍÊÇÒ»¸ö°´Å¥£¬µã»÷Ö®ºó´ò¿ª¶Ô»°¿ò£¬È»ºóѡȡͼƬ¡£¾ÍÕâÑùÉÏ´«¡£¡£
ÔõôʵÏÖ¡£ÔÚÍøÉÏËѵ½ÄÇô¶àµÄ´úÂ룬ȫÊǺܶàµÄÄÇÖÖ£¬²»ÖªµÀ£¬¿´²»ÏÂÈ¥¡£
ËùÒÔÔÚÕâÀïÏëÇë´ó¸ç´ó½ã°ï°ïæ¡£

ʹÓÃ×Ô´øµÄfileupload¿Ø¼þ¿ÉÒÔʵÏÖ ......

js¿ØÖÆasp¿Õ¼ädropdownlist - .NET¼¼Êõ / ASP.NET

ÎÒÓÐÁ½¸ödropdownlist¶¼°óºÃÁËÖµ£¬ÏëÑ¡ÖÐÒ»¸ödropdownlistÖеÄÖµ£¬È»ºóÔÚÁíÒ»¸ödropdownlistÖÐÑ¡ÖÐÏàÓ¦µÄÒ»Ïî¡£
²»ÊÇ´Óа󶨵ڶþ¸ödropdownlist£¬ÊÇÔÚÒѾ­°óºÃµÄÖµµ±ÖÐÑ¡ÖÐÒ»¸ö¡£
ÎÒÏëÓÃjsд
ÇóÖú
Äã¿ÉÒÔ°Ñdrop ......

asp.netÈçºÎÌá¸ß·ÃÎÊËÙ¶È - .NET¼¼Êõ / ASP.NET

ÎÒ×î½ü×öÁËÒ»¸öÍøÕ¾ÊǹØÓÚ²úƷչʾµÄ ~ Õû¸öÍøÕ¾Í¼Æ¬¶¼Õ¼ÓÃÁËÒ»´ó°ë  
ÕâÑùµÄ»°·ÃÎÊËٶȾͷdz£Âý ÓÐʲô°ì·¨¿ÉÒÔ½â¾öÂð£¿
Âé·³´ó¼Ò¶à¶à¸øµãÒâ¼û £¡ ÓÐʲô¾¡¹Ü˵ 
3Q´ó¼Ò
htmlÒ³Ãæ.

Õâ¸ö,¼ÈÈ»Ö÷Ò ......
© 2009 ej38.com All Rights Reserved. ¹ØÓÚE½¡ÍøÁªÏµÎÒÃÇ | Õ¾µãµØÍ¼ | ¸ÓICP±¸09004571ºÅ