ASP.NETÉÏ´«´óÓÚ4MµÄÎļþµÄÏà¹ØÉèÖÃ
²½Öè1£º
ÐÞ¸Äwin2003ÉÏ´«ÏÞÖÆ£¬ÕÒµ½windows\system32\inserv\metabase.xmlÎļþ
½«ÆäÖеġ¡aspmaxrequestentityallowed= µÄÖµ¸ÄΪ1073741824¡¡£¨1G£©
×¢ÒâÐÞ¸ÄǰҪֹͣIISµÈ·þÎñ¡£
²½Öè2£º
Èç¹ûÄã×°µÄÊÇnet1.1£¬ÇëÕÒµ½windows\...\v1.1.4322\config\machina.configÎļþ£¬½«execution timeout¸ÄΪ36000
½«maxrequestlenth ÖµÉèΪ¡¡1048576¡¡£¨1G£©
Èç¹ûÄã×°µÄÊÇnet2.0£¬ÇëÕÒµ½windows\...\web.configÎļþ£¬ÔÚ</system.web></configuretion>ÕâÒ»ÐеÄÉÏ·½²åÈëÒ»ÐУ¬
<httpruntime maxrequestlenth="1048576" executiontimeout="3600"/>
Ïà¹ØÎĵµ£º
Êý¾Ý´¦Àí³É¹¦ÂíÉÏÌø×ªµ½ÁíÍâÒ»¸öÒ³Ãæ£¡
ÄãµÄºǫ́´¦ÀíÒ³Ãæ£¬Ò²¾ÍÊÇÊý¾Ý½ÓÊÕÒ³Ãæ£¬Ö´ÐÐÍêÏà¹ØµÄ²Ù×÷ºó£¬Ê¹ÓÃÏÂÃæµÄÓï¾ä£º
response.write("<script>alert('Êý¾ÝÌá½»³É¹¦******');window.location.href='ÄãÏëҪתÏòµÄÒ³ÃæµÄµØÖ·';</script>")
ÕâÑùËæ±ãËû·µ»ØºóÔõôˢУ¬ÏÔʾµÄʼÖÕÊÇ“Êý¾ÝÌá½»³É¹¦ ......
using System;
using System.Data;
using System.Configuration;
using System.Collections;
using System.Text;
using System.Collections.Generic;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;
using Sy ......
web.config
<customErrors mode="On" defaultRedirect="ApplicationErroy.aspx" >
<error statusCode="403" redirect="403.htm"/>
<error statusCode="404" redirect="404.htm"/>
<error statusCode= ......
1. ͼƬÎÊÌâ
·Ç³£ºÃ½â¾ö
<img runat="server" src="~/images/ad468x60.gif" alt="" />
¼ÓÉÏrunat="server" £¬Â·¾¶Ê¹Óþø¶Ô·¾¶~/»ù±¾ÉϾÍOKÁË¡£
2. CSSÎļþÒýÓÃ
<link rel="stylesheet" type="text/css" href="style.css" />
ÕâÀïÉñÆæµÄ¾ÍÊÇlinkµÄÎļþµÄhrefÊÇËæ×ű»·ÃÎÊÎļþµÄĿ¼½á¹¹×Ô¶¯µ÷Õû£¬Ëµ°×Á˾ ......