Asp.Net ÉÏ´«´óÎļþרÌâ ¸ÅÊö£ºÉÏ´«´óÎļþµÄÄѵã
ÕýÎIJ¿·Ö£º
.Ff j(y-vDp0
(Gd4DA-{%r1?.@0 ×¢Ò⣺ÒÔϺìÉ«²¿·Ö×ÖÌå˵Ã÷¸ÃÄÚÈÝÒýÓÃÓÚ΢ÈíµÄÏà¹ØÍøÕ¾ITPUB¸öÈË¿Õ¼ä8~+X.M.cL$C0Gq4J
ITPUB¸öÈË¿Õ¼ä [o VI4[?FHe
ÒòΪҪ×öÒ»¸öÊÓƵÍøÕ¾£¬ËùÒÔÐèÒªÌṩÓû§ÉÏ´«ÊÓƵµÄ¹¦ÄÜ¡£¿ÉÊÇASP.Net×Ô´øµÄÉÏ´«¿Ø¼þÖ»ÄÜÓÃÓÚÉÏ´«Ð¡Îļþ,ÕâÏÔÈ»ÎÞ·¨Âú×ãÐèÒª¡£ÓÐЩÅóÓÑ¿ÉÄÜÒªÎÊÁË"ΪʲôÐèÒªÓÃÄǸöѽ£¬Ö±½ÓFTP´«²»¾ÍºÃÁË"£¬Êǵģ¬ÓÃFTP´«¾Í·½±ãÁ˺ܶ࣬µ«ÊÇFTPÔÚÓû§ÉÏ´«ºó£¬ÎÞ·¨¶ÔÉÏ´«µÄÎļþ½øÐÐÔÚÏ߱༣¨±ÈÈç¸ñʽת»»£¬Ìí¼Óµ½Êý¾Ý¿âѽµÈ£©£¬ËùÓÐÕâЩ¿ÉÒÔÓÉÍøÕ¾×Ô¶¯Íê³ÉµÄ·³ËöµÄÈÎÎñÔò¶¼½«½»ÓɹÜÀíÈËÔ±À´Íê³É£¬Õâ¶ÔÓÚÒ»¸öÉÌÒµÍøÕ¾À´ËµÎÞÒÉÔö¼ÓÁËÓÃÈ˳ɱ¾¡£¶øÇÒÕâЩÖظ´µÄµÍÄÔÁ¦»îµÄ¹¤×÷£¬¿´ÆðÀ´¾ÍºÍÌåÁ¦»îûʲôÇø±ð£¬Õâ²»ÓÖ´ÓÁíÒ»¸ö²àÃæ½µµÍÁËÎÒÃÇÕâЩITÈËÔ±µÄ¼ÛÖµ¡£³¶Ô¶ÁË£¬ÑÔ¹éÕý´«£¬ÄÇMSΪʲôҪ½«Õâ¸öÉÏ´«¿Ø¼þµÄÄÜÁ¦ÏÞÖÆÕâôСÄØ£¿ÔÚMSDNÒÔ¼°Î¢ÈíµÄÆäËüÍøÕ¾ÉÏÎÒÃÇ¿ÉÒÔÁ˽⵽:"web.config ÅäÖÃÎļþÖеÄ<httpRuntime> ½ÚµÄ maxRequestLength ²ÎÊýµÄĬÈÏֵΪ 4096 (4 MB)¡£ËùÒÔ£¬Ä¬ÈÏÇé¿öϲ»ÄÜÉÏ´«´óÓÚÕâ¸öÖµµÄÎļþ¡£ÕâÒ²ÊÇΪÁË·ÀÖ¹¾Ü¾ø·þÎñ¹¥»÷¡£"
-|)X k)@z&c {&v0
"|$Z&}'MS,E3m0nzc9T0 ¿ÉÊÇ£¬ÕâÑùÒ»À´¾Í¶ÔÎÒÃÇÉÏ´«´óÎļþÔì³ÉÁËÂé·³¡£ÓÐЩÅóÓÑ¿ÉÄÜ·¢ÏÖ¼ÈÈ»ÏÞÖÆÉÏ´«Îļþ´óСÊÇÓÉÓÚmaxRequestLength Õâ¸ö²ÎÊý,Äǽ«Õâ¸öÖµ¸Ä´óµã²»¾ÍOKÁË¡£µÄÈ·£¬ÕâÑù×ö±ã¿ÉÇáÇáËÉËÉÌá¸ßÎļþÉÏ´«´óСµÄÏÞÖÆ£¬¿ÉÊÇÔÚ"ÉÏ´«¹ý³ÌÖУ¬ASP.NET Ê×ÏȽ«Õû¸öÎļþ¼ÓÔص½ÄÚ´æÖУ¬È»ºóÓû§²Å¿ÉÒÔ½«¸ÃÎļþ±£´æµ½´ÅÅÌ¡£"Ò²¾ÍÊÇ˵£¬Èç¹ûÓû§ÉÏ´«µÄÎļþ´óСΪ100M£¬ÄÇô·þÎñÆ÷µÄÄÚ´æÖоÍÒªÄóö100MÀ´´æ·ÅÓû§ÉÏ´«µÄÎļþ£»Èç¹ûÊÇ10¸öÓû§ÔÚͬʱÉÏ´«£¬ÔÝÇÒ²»Ìá²¢ÐÐÐÔµÄÎÊÌ⣬ÄÇ10¸öÓû§¾ÍÒªÕ¼ÓÃ1000MµÄÄڴ棻Èç¹ûÊÇ100¡¢1000¡¢ÉõÖÁÊǼ¸Íò¸öÓû§ÄØ£¿ÄÇô£¬ÔÙ´óµÄÄڴ涼²»¹»ÄãÄÃÀ´ÌṩÓû§ÉÏ´«µÄ¡£ ITPUB¸öÈË¿Õ¼äh\p'Vt2PI
hV(eF!|l0 "ÁíÍ⣬ÆäËûÒòËØÒ²»áÓ°Ïì¿ÉÒÔÉÏÔصÄ×î´óÎļþ´óС¡£ÕâЩÒòËØ°üÀ¨¿ÉÓÃÄÚ´æ¡¢¿ÉÓÃÓ²Å̿ռ䡢´¦ÀíÆ÷ËٶȺ͵±Ç°ÍøÂçÁ÷Á¿¡£¶ÔÓÚÉÏÔصij£¹æÁ÷Á¿µÄÎļþ£¬Microsoft ½¨ÒéÄúÈÃ×î´óÎļþ´óС½éÓÚ 10 µ½ 20 MB Ö®¼ä¡£Èç¹ûÄúºÜÉÙÉÏÔØÎļþ£¬Ôò×î´óÎļþ´óС¿ÉÒÔΪ 100 MB¡£"
A@OG p3QM0
Ïà¹ØÎĵµ£º
ÔÚWeb±à³Ì¹ý³ÌÖУ¬´æÔÚןܶలȫÒþ»¼¡£±ÈÈçÔÚÒÔÇ°µÄASP°æ±¾ÖУ¬CookieΪ·ÃÎÊÕߺͱà³ÌÕ߶¼ÌṩÁË·½±ã£¬²¢Ã»ÓÐÌṩ¼ÓÃܵŦÄÜ¡£´ò¿ªIEä¯ÀÀÆ÷£¬Ñ¡Ôñ“¹¤¾ß”²Ëµ¥ÀïµÄ“InternetÑ¡Ï¬È»ºóÔÚµ¯³öµÄ¶Ô»°¿òÀïµ¥»÷“ÉèÖÔ°´Å¥£¬Ñ¡Ôñ“²é¿´Îļþ”°´Å¥£¬ÔÚµ¯³öµÄ´°¿ÚÖУ¬¾Í»áÏÔʾӲÅÌÀï ......
ASP.NETÖУ¬¾³£»áʹÓõ½templates(Ä£°æ)¹¦ÄÜ£¬±ÈÈçÔÚdatagrid£¬datalist£¬repeaterµÈ¿Ø¼þÖУ¬Ê¹ÓÃtemplates£¬½«»á´ó´óÔöÇ¿Æ书ÄÜ¡£ÒÔÍù£¬ÎÒÃÇÒ»°ãÊÇÔÚÉè¼Æ³ÌÐòʱ£¬¾ÍÒѾÉèÖúÿؼþÖеÄÄ£°æÊÇÔõÑùµÄÁË¡£µ«ÊÇ£¬ÓеÄʱºò£¬¿ÉÄÜÎÒÃÇÐèÒª¶¯Ì¬¼ÓÔØÄ£°æ£¬±ÈÈ磬µ±ÄãÒªÇóÄãµÄÓ¦ÓóÌÐòµÄ½çÃæ·ç¸ñËæ×ÅÓû§µÄÐèÇó¶ø±ä»¯Ê±£¬Äã¾ÍÐèÒ ......
ÔÚ×î½üµÄÏîÄ¿ÖУ¬Óöµ½Ò»¸öÎÊÌ⣬ҪʵÏÖÕâÑùµÄЧ¹û£º
µãpic_small.AspxÒ³ÃæµÄËõÂÔͼºóµ¯³öpic_all.aspxÒ³Ã棬pic_all.aspxÒ³ÃæµÄ´óСҪ¸ù¾ÝͼƬ´óС×Ô¶¯µ÷Õû£¬¶øÇÒÒªÓÐͼƬµÄ˵Ã÷ÐÅÏ¢£¬»¹¿ÉÒÔµãÉÏÒ»·ùºÍÏÂÒ»·ùµÈ½øÐзҳ¡£
ʵÏÖ¹ý³ÌÈçÏ£º
pic_small.AspxÒ³ÃæËõÂÔͼ´¦µÄ´úÂëΪ£º
£¼IMG id="imgPic" style="CURSOR: h ......
ÏÂÔØÎļþ£ºstring musicUrl = "music/" + Request.QueryString["murl"].ToString();
string fileName = Request.QueryString["murl"].ToString();
string filePath = Server.MapPath(musicUrl);//·¾¶
FileInfo fileInfo = new FileInfo(filePath);
Response.Clear();
Response.Cl ......