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ÒÔÄÚ£¬¿ÉÊÇÕâÑùµÄ´óС»¹ÊǺÜÈÝÒ×Ôì³É·þÎñÆ÷µÄ̱»¾,×ۺϿ¼ÂǺó£
Ïà¹ØÎĵµ£º
ÔÚÍøÒ³µÄ¿ª·¢ÖÐΪÁËËÑË÷ÒýÇæµÄÓÅ»¯£¬Ìí¼ÓÒ³ÃæµÄtitle
keyword descriptionÊÇ×î³£Óõķ½·¨Ö®Ò»¡£
asp.netµÄ·½·¨´úÂëÈçÏÂËùʾ£º
public void SEO_HEAD(string title, string keyword, string
description)
{
......
ÒýÓÃÃüÃû¿Õ¼ä
using System.Diagnostics;
string sPath = "d:\\test\\test.bat";
string sDict = "d:\\test\\";
ProcessStartInfo psi = new ProcessStartInfo("cmd.exe ......
asp.net½Ì³Ì:asp.net¿Ø¼þ¿ª·¢£¨Ò»£©-ÏÔʾ¿Ø¼þÄÚÈÝ
asp.net¿Ø¼þµÄÏÔʾ×ÔÈ»»áÀë²»¿ªÊä³öHTML¡¢CSS¡¢JavascriptµÈǰ̨µÄÏÔʾÄÚÈÝ£¬ËùÒÔ¿ª·¢Ò»¸ö¿Ø¼þµÄʱºòµÚÒ»¼þʾÍÊÇÒªÖªµÀÈçºÎÊä³ö¿Í»§¶ËÒªÏÔʾµÄÄÚÈÝ¡£
¡¡¡¡Ò»¡¢Ñ¡Ôñ»ùÀà
¡¡¡¡asp.netÖÐËùÓеıê×¼¿Ø¼þ¶¼¿ÉÒÔÄùýÀ´×÷Ϊ»ùÀ࣬Èç¹ûÎÒÃÇÒª¿ª·¢µÄ¿Ø¼þÖ»ÊǶÔÔÓеıê×¼¿Ø¼þ×öÒ ......
asp.net½Ì³Ì:asp.net¿Ø¼þ¿ª·¢(¶þ)-¼òµ¥ÊôÐÔ
ÎÒÃÇ¿ª·¢³öÀ´µÄ¿Ø¼þÒ»°ã¶¼ÐèÒª¸úʹÓÿؼþµÄÈ˱à³ÌÈËÔ±½»»¥£¬ÆäÖн»»¥ÓÐÁ½¸ö;¾¶£ºÒ»¸öÊÇÊôÐÔ»¹ÓоÍÊÇʼþ¡£ÊôÐÔ¿ÉÄÜÊǼòµ¥µÄÀàÐÍÈ磺int¡¢stringµÈ²¢²»Ì«¸´ÔÓµÄÀàÐÍ£¬Ò²ÓбȽϸ´ÔÓµÄÀàÐÍÈ磺¼¯ºÏ¡£
¡¡¡¡Ò»¡¢ÊôÐÔʵÏÖ½»»¥
¡¡¡¡ÎÒÃÇ»¹ÊÇÑØÓÃÉÏÃæµÄÀý×ÓÀ´Ìí¼ÓÊôÐÔ PicShowʾÀý£º
......
Á¬½ÓaccessÊý¾Ý¿â´úÂ룬дÔÚÒ»¸öµ¥¶ÀµÄÀàÀï
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Data;
using System.Data.OleDb;
namespace AppWebDLL
{
public class ConnApp
{
  ......