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>")
ÕâÑùËæ±ãËû·µ»ØºóÔõôˢУ¬ÏÔʾµÄʼÖÕÊÇ“Êý¾ÝÌá½»³É¹¦ ......
2.1 ASP.net ÈëÃÅ
¡¡¡¡Í¨³£Ì¸Ò»¸öѧ¿Æ£¬ÎÒÃÇÀÏÊÇ˵£¬ËüÈëÃźܼòµ¥µÄÂASP.netÒ²ÊÇ¡£ASP.netÌá³öÒ»¸ö¸ÅÄ¾ÍÊÇÈÏΪWEBÒ³Ãæ£¬Ò²ÊÇÒ»¸ö´°Ì壬ËùÒÔ£¬Ñ§Ï°¹ýÃæÏò¶ÔÏó±à³ÌµÄVB VC BC DephiµÄÅóÓÑ£¬Ñ§ÆðÀ´¾Í¼òµ¥¶àÁË¡£
¡¡¡¡Ò»¸öASP.netÒ³ÃæµÄºó׺ÃûÊÇ".aspx"£¬ËùÒÔ£¬IISÔÚÄã°²×°ÍêASP.netʱ£¬Ò²»á°ÑDefault.aspx×÷ΪÄãµÄĬÈÏ ......
web.config
<customErrors mode="On" defaultRedirect="ApplicationErroy.aspx" >
<error statusCode="403" redirect="403.htm"/>
<error statusCode="404" redirect="404.htm"/>
<error statusCode= ......
·Ï»°²»Ëµ£¬Ö±½Ó´úÂ벿·Ö´úÂëÕª³×ÔÍøÉÏ£¬ÔÚ´ËÏëÔ×÷Õß±íʾ¸Ðл
1¡¢·þÎñ¶Ë uploadFile.ashx
<%@ WebHandler Language="VB" Class="UploadFile" %>
Imports System
Imports System.Web
Imports System.Web.HttpServerUtility
Imports System.IO
Imports System.Web.HttpRequest
Public Class UploadFile : Impl ......
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ÊÇËæ×ű»·ÃÎÊÎļþµÄĿ¼½á¹¹×Ô¶¯µ÷Õû£¬Ëµ°×Á˾ ......