(·Â163)Asp.Net¶à¸½¼þÉÏ´« [תÌù]
¶ÔÓÚasp.net³ÌÐò£¬ÎÒÃÇÓ¦¸Ã¾¡¿ÉÄܵÄÌṩһ¸ö±ã½ÝµÄÓû§½Ó¿Ú£¬¼õÉÙÒ³Ãæ»Ø´«¾ÍÊÇÆäÖÐÖ®Ò»¡£
±¾ÎÄÑÝʾһ´ÎÉÏ´«¶à¸öÎļþµÄ·½·¨£¬ÔÚ¿Í»§¶Ë¿ÉÒÔËæÒâ¿ØÖÆÉÏ´«ÎļþµÄ¸öÊý£¬µ«ÊÇ×¢Òâ×ÜÎļþ´óС²»Äܹý´ó£¬·ñÔò»áÓÐÒì³£Å׳ö¡£ÖÁÓÚ½â¾ö´óÎļþÉÏ´«µÄ·½·¨ÒѾ³¬³ö±¾ÎĵÄÌÖÂÛ·¶Î§¡£
<×¢£º´ó¸½¼þ°ì·¨>
<
<configuration>
<system.web>
<httpRuntime maxRequestLength="10000"
useFullyQualifiedRedirectUrl="true"
executionTimeout="45"/>
</system.web>
</configuration>
ÐèÒª½«machine.config»òweb.configÖеÄ<httpRuntime> sectionµÄmaxRequestLengthÖµ×÷ÏàÓ¦µÄÐÞ¸Ä.
>
ÕâÀïÓÐÒ»¸öÒªµã´ó¼Ò²»ÒªºöÂÔÁË£¬·ñÔò³ÌÐò²»ÄÜÕý³£¹¤×÷¡£
¾ÍÊDZØÐëÖ¸¶¨formµÄenctype="multipart/form-data" ÊôÐÔ
´úÂëÈçÏ£º
<%@ Page language="c#"
Codebehind="MultiAttchments.aspx.cs" AutoEventWireup="false"
Inherits="WebApplication3.MultiAttchments" %><!DOCTYPE HTML
PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN" ><HTML>
<HEAD>
<script>
function AddAttachments()
{
document.getElementById('attach').innerText
Ïà¹ØÎĵµ£º
//»ñÈ¡µ±Ç°½ø³ÌµÄÍêÕû·¾¶£¬°üº¬ÎļþÃû(½ø³ÌÃû)¡£
string str = this.GetType().Assembly.Location;
result: X:\xxx\xxx\xxx.exe (.exeÎļþËùÔÚµÄĿ¼+.exeÎļþÃû)
//»ñÈ¡Ð嵀 Process ×é¼þ²¢½«ÆäÓ뵱ǰ»î¶¯µÄ½ø³Ì¹ØÁªµÄÖ÷Ä£¿éµÄÍêÕû·¾¶£¬°üº¬ÎļþÃû(½ø³ÌÃû)¡£
s ......
Web.configÎļþÊÇÒ»¸ö±ê×¼µÄXMLÎĵµ£¬ËùÓеÄÅäÖÃÐÅÏ¢¶¼Î»ÓÚ<configuration>±ê¼ÇÄÚ¡£<system.web>±ê¼ÇÄÚÔò°üº¬Á˺ËÐÄASP.NETÅäÖÃÉèÖá£Óû§¿ÉÒÔÔÚVisual Studio.NETÖдò¿ªWeb.configÀ´²é¿´ºÍ±à¼ËüµÄÄÚÈÝ£¬Õâ¸öÎļþÖаüº¬ÁË´óÁ¿µÄ×¢ÊÍÐÅÏ¢£¬Óû§¿ÉÒÔ²ÎÕÕѧϰ¡£ÏÂÃæ½éÉܼ¸¸ö³£Óõıê¼Ç¡£
1. <appSettings> ......
¹ØÓÚÊý¾Ý´¦ÀíÏà¹ØµÄÓÅ»¯
Ò»¡¢ SqlDataReadºÍDatasetµÄÑ¡Ôñ
SqldatareadÓŵ㣺¶ÁÈ¡Êý¾Ý·Ç³£¿ì¡£Èç¹û¶Ô·µ»ØµÄÊý¾Ý²»Ðè×ö´óÁ¿´¦ÀíµÄÇé¿öÏ£ ......
1.asp.netºô½Ðjs
view
plain
copy
to clipboard
print
?
Response.Write("<mce:script language=javascript><!--
");
Response.Write("alert('»¶ÓÄú ');"
);
Response.Write("location.href='login.aspx';"
)& ......