Asp.Net ÉÏ´«´óÎļþרÌâ(1) ¸ÅÊö£ºÉÏ´«´óÎļþµÄÄѵã
ÕýÎIJ¿·Ö£º
×¢Ò⣺ÒÔϺìÉ«²¿·Ö×ÖÌå˵Ã÷¸ÃÄÚÈÝÒýÓÃÓÚ΢ÈíµÄÏà¹ØÍøÕ¾
ÒòΪҪ×öÒ»¸öÊÓƵÍøÕ¾£¬ËùÒÔÐèÒªÌṩÓû§ÉÏ´«ÊÓƵµÄ¹¦ÄÜ¡£¿ÉÊÇASP.Net×Ô´øµÄÉÏ´«¿Ø¼þÖ»ÄÜÓÃÓÚÉÏ´«Ð¡Îļþ,ÕâÏÔÈ»ÎÞ·¨Âú×ãÐèÒª¡£ÓÐЩÅóÓÑ¿ÉÄÜÒªÎÊÁË"ΪʲôÐèÒªÓÃÄǸöѽ£¬Ö±½ÓFTP´«²»¾ÍºÃÁË"£¬Êǵģ¬ÓÃFTP´«¾Í·½±ãÁ˺ܶ࣬µ«ÊÇFTPÔÚÓû§ÉÏ´«ºó£¬ÎÞ·¨¶ÔÉÏ´«µÄÎļþ½øÐÐÔÚÏ߱༣¨±ÈÈç¸ñʽת»»£¬Ìí¼Óµ½Êý¾Ý¿âѽµÈ£©£¬ËùÓÐÕâЩ¿ÉÒÔÓÉÍøÕ¾×Ô¶¯Íê³ÉµÄ·³ËöµÄÈÎÎñÔò¶¼½«½»ÓɹÜÀíÈËÔ±À´Íê³É£¬Õâ¶ÔÓÚÒ»¸öÉÌÒµÍøÕ¾À´ËµÎÞÒÉÔö¼ÓÁËÓÃÈ˳ɱ¾¡£¶øÇÒÕâЩÖظ´µÄµÍÄÔÁ¦»îµÄ¹¤×÷£¬¿´ÆðÀ´¾ÍºÍÌåÁ¦»îûʲôÇø±ð£¬Õâ²»ÓÖ´ÓÁíÒ»¸ö²àÃæ½µµÍÁËÎÒÃÇÕâЩITÈËÔ±µÄ¼ÛÖµ¡£³¶Ô¶ÁË£¬ÑÔ¹éÕý´«£¬ÄÇMSΪʲôҪ½«Õâ¸öÉÏ´«¿Ø¼þµÄÄÜÁ¦ÏÞÖÆÕâôСÄØ£¿ÔÚMSDNÒÔ¼°Î¢ÈíµÄÆäËüÍøÕ¾ÉÏÎÒÃÇ¿ÉÒÔÁ˽⵽:"web.config ÅäÖÃÎļþÖеÄ<httpRuntime> ½ÚµÄ maxRequestLength ²ÎÊýµÄĬÈÏֵΪ 4096 (4 MB)¡£ËùÒÔ£¬Ä¬ÈÏÇé¿öϲ»ÄÜÉÏ´«´óÓÚÕâ¸öÖµµÄÎļþ¡£ÕâÒ²ÊÇΪÁË·ÀÖ¹¾Ü¾ø·þÎñ¹¥»÷¡£"
¿ÉÊÇ£¬ÕâÑùÒ»À´¾Í¶ÔÎÒÃÇÉÏ´«´óÎļþÔì³ÉÁËÂé·³¡£ÓÐЩÅóÓÑ¿ÉÄÜ·¢ÏÖ¼ÈÈ»ÏÞÖÆÉÏ´«Îļþ´óСÊÇÓÉÓÚmaxRequestLength Õâ¸ö²ÎÊý,Äǽ«Õâ¸öÖµ¸Ä´óµã²»¾ÍOKÁË¡£µÄÈ·£¬ÕâÑù×ö±ã¿ÉÇáÇáËÉËÉÌá¸ßÎļþÉÏ´«´óСµÄÏÞÖÆ£¬¿ÉÊÇÔÚ"ÉÏ´«¹ý³ÌÖУ¬ASP.NET Ê×ÏȽ«Õû¸öÎļþ¼ÓÔص½ÄÚ´æÖУ¬È»ºóÓû§²Å¿ÉÒÔ½«¸ÃÎļþ±£´æµ½´ÅÅÌ¡£"Ò²¾ÍÊÇ˵£¬Èç¹ûÓû§ÉÏ´«µÄÎļþ´óСΪ100M£¬ÄÇô·þÎñÆ÷µÄÄÚ´æÖоÍÒªÄóö100MÀ´´æ·ÅÓû§ÉÏ´«µÄÎļþ£»Èç¹ûÊÇ10¸öÓû§ÔÚͬʱÉÏ´«£¬ÔÝÇÒ²»Ìá²¢ÐÐÐÔµÄÎÊÌ⣬ÄÇ10¸öÓû§¾ÍÒªÕ¼ÓÃ1000MµÄÄڴ棻Èç¹ûÊÇ100¡¢1000¡¢ÉõÖÁÊǼ¸Íò¸öÓû§ÄØ£¿ÄÇô£¬ÔÙ´óµÄÄڴ涼²»¹»ÄãÄÃÀ´ÌṩÓû§ÉÏ´«µÄ¡£
"ÁíÍ⣬ÆäËûÒòËØÒ²»áÓ°Ïì¿ÉÒÔÉÏÔصÄ×î´óÎļþ´óС¡£ÕâЩÒòËØ°üÀ¨¿ÉÓÃÄÚ´æ¡¢¿ÉÓÃÓ²Å̿ռ䡢´¦ÀíÆ÷ËٶȺ͵±Ç°ÍøÂçÁ÷Á¿¡£¶ÔÓÚÉÏÔصij£¹æÁ÷Á¿µÄÎļþ£¬Microsoft ½¨ÒéÄúÈÃ×î´óÎļþ´óС½éÓÚ 10 µ½ 20 MB Ö®¼ä¡£Èç¹ûÄúºÜÉÙÉÏÔØÎļþ£¬Ôò×î´óÎļþ´óС¿ÉÒÔΪ 100 MB¡£"
Ò»¸öÆóÒµÄÚ²¿µÄÊÓƵÍøÕ¾£¬¹ÀÇÒËãËüµÄÈÕÁ÷Á¿Îª1000È˴Σ¬ÄÇô°´ÕÕ΢ÈíµÄ½¨Ò飬ËùÉÏ´«µÄÎļþ´óСӦ¾¡Á¿¿ØÖÆÔÚ20MÒÔÄÚ£¬¿ÉÊÇÕâÑùµÄ´óС»¹ÊǺÜÈÝÒ×Ôì³É·þÎñÆ÷µÄ̱»¾,×ۺϿ¼ÂǺó£
Ïà¹ØÎĵµ£º
public static void GetHtml(string url,string savepath)//url²ÎÊýΪ½«ÒªÉú³ÉµÄÄǸö¶¯Ì¬Ò³ÃæµÄµØÖ·£¬savepathΪҪ´æ·ÅµØÖ·
{
string Result;
WebResponse MyResponse;
WebRequest MyRequest = System.Net.HttpWebRequest.Create(url);
MyResponse = MyReque ......
AJAXÊÇAsynchronous JavaScript and XMLËõд¡£Õâ¸ö¸ÅÄî´ú±íµÄÊÇÒ»ÖÖ¼¼Êõ£¬µ±ÄúÔÚ˵“ÎÒÔÚÏîÄ¿ÖÐʹÓÃÁËAJAX¼¼Êõʱ”£¬Ö»ÊÇ´ú±íÁËÄúʹÓÿͻ§¶ËXMLHttpRequest¶ÔÏóÓë·þÎñÆ÷¶Ë½øÐÐÒ첽ͨÐÅ¡£²»¹ýÒòΪËæ×ÅAJAX¼¼ÊõµÄÔËÓÃÍùÍù»á´øÀ´·á¸»µÄ¿Í»§¶ËЧ¹û£¬Òò´Ë¶ÔAJAX¼¼ÊõµÄ¹ãÒåÀí½âÒ²¿ÉÒÔÈÏΪÕâÊÇÒ»ÖÖ²Ù×÷ ......
ÔÚÍøÒ³µÄ¿ª·¢ÖÐΪÁËËÑË÷ÒýÇæµÄÓÅ»¯£¬Ìí¼ÓÒ³ÃæµÄtitle
keyword descriptionÊÇ×î³£Óõķ½·¨Ö®Ò»¡£
asp.netµÄ·½·¨´úÂëÈçÏÂËùʾ£º
public void SEO_HEAD(string title, string keyword, string
description)
{
......
½éÉÜ£º
ÔÚÈí¼þ¿ª·¢ÖУ¬°ÑÊý¾Ý´ÓÒ»¸öµØ·½¸´ÖƵ½ÁíÒ»¸öµØ·½ÊÇÒ»¸öÆÕ±éµÄÓ¦ÓᣠÔںܶ಻ͬµÄ³¡ºÏ¶¼»áÖ´ÐÐÕâ¸ö²Ù×÷£¬°üÀ¨¾Éϵͳµ½ÐÂϵͳµÄÒÆÖ²£¬´Ó²»Í¬µÄÊý¾Ý¿â±¸·ÝÊý¾ÝºÍÊÕ¼¯Êý¾Ý¡£ ASP.NET 2.0ÓÐÒ»¸öSqlBulkCopyÀ࣬Ëü¿ÉÒÔ°ïÖúÄã´Ó²»Í¬µÄÊý¾ÝÔ´¸´ÖÆÊý¾Ýµ½SQL SERVERÊý¾Ý¿â¡£ ±¾ÎÄÖÐÎÒ½«Ê¾·¶SqlBulkCopyÀàµÄ²»Í¬Ó¦Óá£
Êý¾ ......
asp.net½Ì³Ì:asp.net¿Ø¼þ¿ª·¢(¶þ)-¼òµ¥ÊôÐÔ
ÎÒÃÇ¿ª·¢³öÀ´µÄ¿Ø¼þÒ»°ã¶¼ÐèÒª¸úʹÓÿؼþµÄÈ˱à³ÌÈËÔ±½»»¥£¬ÆäÖн»»¥ÓÐÁ½¸ö;¾¶£ºÒ»¸öÊÇÊôÐÔ»¹ÓоÍÊÇʼþ¡£ÊôÐÔ¿ÉÄÜÊǼòµ¥µÄÀàÐÍÈ磺int¡¢stringµÈ²¢²»Ì«¸´ÔÓµÄÀàÐÍ£¬Ò²ÓбȽϸ´ÔÓµÄÀàÐÍÈ磺¼¯ºÏ¡£
¡¡¡¡Ò»¡¢ÊôÐÔʵÏÖ½»»¥
¡¡¡¡ÎÒÃÇ»¹ÊÇÑØÓÃÉÏÃæµÄÀý×ÓÀ´Ìí¼ÓÊôÐÔ PicShowʾÀý£º
......