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

ASP.Net³¬Ê±Ê±¼ä

½â¾ö°ì·¨
1.ÔÚ´úÂëÀïÃæ,°Ñδ¹Ø±ÕµÄÁ¬½Ó¹Ø±Õ
2.À©´ó¹²Ïí³Ø,·½·¨ÈçÏÂ:
½â¾ö·½·¨¿ÉÒÔÊÇÐÞ¸ÄÁ¬½Ó³ØµÄÁ¬½ÓÉú´æÆÚ,ÒòΪĬÈÏÖµÊÇ60Ãë,¼´Á¬½Ó´ÓÓ¦ÓóÌÐò±»Êͷźó¿ÉÒÔÔÚ³ØÖб£´æµÄʱ¼ä¡£
¾ßÌå²Ù×÷²½ÖèÈçÏ£º
Èç¹ûÊÇODBCµÄ»°£¬Ôò¿ÉÒÔÔÚODBC Data Source AdministratorÖÐÊÖ¶¯¸ü¸Ä£¬¸Ã³ÌÐòλÓÚ“Start”²Ëµ¥ÖеēPrograms”->"Adminstrative Tools"£¨ÖÐÎÄÃû£º¹ÜÀí¹¤¾ß£©Ï£¬»ò´Ó"Control Panel"(ÖÐÎÄÃû£º¿ØÖÆÃæ°å)Öдò¿ª“ODBC Data Source Administrator”£¨ODBCÊý¾ÝÔ´¹ÜÀíÆ÷£©£¬ÔÙÑ¡Ôñ“Connection Pooling”£¨Á¬½Ó³Ø£©Ñ¡Ï£¬Ë«»÷Çý¶¯³ÌÐòÖеēSQL Server”£¬Ñ¡Ôñ“Pool Connetions to this drive”(ʹÓóØÁ¬½Ó¸ÃÇý¶¯³ÌÐò)£¬°ÑÏÂÃæµÄʱ¼ä60Ãë¸ÄµÄ´óÒ»µã£¬ÀýÈç120¡£
Èç¹ûÊÇSqlConnectionµÄ¹²ÏíÁ¬½Ó£¬ÔòΪConnectionStringÊôÐÔConnection LifetimeÊýÖµÃû³ÆÖ¸¶¨Ò»¸öÖµ£¬¸ÃֵĬÈÏÇé¿öÏÂÊÇ0£¬±íʾÁ¬½ÓÓÀÔ¶²»»á´Ó³ØÖб»×Ô¶¯ÒÆ×ß¡£Èç¹ûÖ¸¶¨Ò»¸ö²»Í¬µÄÖµ£¬ÄÇôһµ©Á¬½Ó±»·µ»Øµ½³ØÖУ¬¸ÃÖµ½«ºÍÁ¬½ÓµÄ´´½¨Ê±¼ä¼°µ±Ç°Ê±¼ä½øÐбȽϡ£Èç¹ûÉú´æÆÚ³¬¹ýÁËConnection LifetimeµÄÖµ£¬ÄÇôÁ¬½Ó½«´Ó³ØÖб»ÒÆ×ß¡£
ÎÊÌâµÄÔ­ÒòÊÇÓëÊý¾Ý¿âµÄÁ¬½ÓûÓÐÏÔʾ¹Ø±Õ,¶øµÈϵͳ×Ô¶¯»ØÊÕÊÇҪʱ¼äµÄ.½â¾öµÄ·½·¨ÊǸıäÁ¬½Ó³ØµÄ´óС.ÔÚÁ¬½Ó×Ö·û´®µÄºóÃæ¼ÓÉÏÒÔÏ´úÂë:Enlist=true;Pooling=true;Max Pool Size=300;Min Pool Size=0;Connection Lifetime=300;user id=sa;packet size=1000
packet size²ÎÊýÈ¡512µ½32767ÖеÄÈÎÒ»ÕûÊýÖµ
·½·¨ÓÐÒÔÏÂÁ½ÖÖ:
1,ÔÚweb.configÖмÓÉÏÒÔÏÂÓï¾ä:
<system.web> 
<httpRuntime maxRequestLength="102400" executionTimeout="720" />
</system.web>  
À´×ÔMSDN½âÊÍ£º
     httpRuntimeÊÇÅäÖÃasp.Net httpÔËÐÐʱÉèÖã¬ÒÔÈ·¶¨ÈçºÎ´¦Àí¶Ôasp.NetÓ¦ÓóÌÐòµÄÇëÇó¡£
     executionTimeout:±íʾÔÊÐíÖ´ÐÐÇëÇóµÄ×î´óʱ¼äÏÞÖÆ£¬µ¥Î»ÎªÃë
     maxRequestLength£ºÖ¸Ê¾ ASP.Net Ö§³ÖµÄ×î´óÎļþÉÏÔØ´óС¡£¸ÃÏÞÖÆ¿ÉÓÃÓÚ·ÀÖ¹ÒòÓû§½«´óÁ¿Îļþ´«µÝµ½¸Ã·þÎñÆ÷¶øµ¼Öµľܾø·þÎñ¹¥»÷¡£Ö¸¶¨µÄ´óСÒÔ KB Ϊµ¥Î»¡£Ä¬ÈÏֵΪ 4096 KB (4 MB)¡£
     useFullyQualifiedRedirectUrl£º±íʾָʾ¿Í»§¶ËÖض¨ÏòÊÇ·ñÊÇÍêÈ«ÏÞ¶¨µÄ£¨²ÉÓà "http://server/path" ¸ñʽ£¬ÕâÊÇijЩÒƶ¯¿Ø¼þËù±ØÐèµÄ


Ïà¹ØÎĵµ£º

¶àƵµÀÍøÕ¾¼Ü¹¹ÊµÏÖ·½·¨ (asp.net C#)

Ö÷Ìå¼Ü¹¹
¡¡¡¡¸÷ƵµÀ·Ö±ðλÓÚ²»Í¬µÄWeb Project(¾ßÓжÀÁ¢µÄ¶þ¼¶ÓòÃû)£¬²¢½«ËùÓеÄÒµÎñÂß¼­ÒÔ¼°Êý¾Ý·ÃÎʹ¦ÄÜ·â×°³ÉClass Library£¬ËùÓÐƵµÀ¹²ÓÃÕâ¸öClass Library¡£
¡¡¡¡ÏÂÃæÏêϸ½éÉÜʵÏÖ·½·¨¡£
¡¡¡¡¼ÙÉèÍøÕ¾ÓÐÈý¸öƵµÀ£¬ÐÂÎÅ¡¢ÂÛ̳ÒÔ¼°²©¿Í£¬¶ÔÓ¦µÄ¶þ¼¶ÓòÃûΪ"news"¡¢"forum"¡¢"blog"¡£³ ......

ASP.NETÖзÀÖ¹Ò³Ãæ¶à´ÎÌá½»µÄ´úÂëʵÏÖ

Button±»µã»÷ºódisableµô¸ÃÒ³ÃæÖÐËùÓеÄButton£¬´Ó¶ø·ÀÖ¹Ìá½»ÑÓʱµ¼ÖµĶà´ÎÌá½»¡£»ùÓÚ֮ǰµÄonceclickbutton½Å±¾.
//ASP.NETÖзÀÖ¹Ò³Ãæ¶à´ÎÌá½»µÄ´úÂë:javascript< script language="javascript"> < !-- function disableOtherSubmit() {
var obj = event.srcElement;
var objs = document.getElementsByTag ......
© 2009 ej38.com All Rights Reserved. ¹ØÓÚE½¡ÍøÁªÏµÎÒÃÇ | Õ¾µãµØͼ | ¸ÓICP±¸09004571ºÅ