asp.netʵÏÖÎļþÏÂÔØ(wapÊÖ»úÏÂÔØ)
Õâ¸öÎÊÌâÀ§ÈÅÁËÎÒÁ½Ì죬ÊÖ»úÏÂÔØ
protected void Page_Load(object sender, EventArgs e)
{
string filename = Server.UrlDecode(Request["upload"]);
string filePath = Server.MapPath("upload/" + filename);//·¾¶
FileDownload(filePath);
}
/// <summary>
/// ÎļþÏÂÔØ
/// </summary>
/// <param name="FullFileName"> </param>
private void FileDownload(string FullFileName)
{
try
{
FileInfo DownloadFile = new FileInfo(FullFileName);
if (DownloadFile.Exists)
{
Response.Clear();
Response.ClearHeaders();
Response.Buffer = false;
//Response.ContentType = "application/octet-stream";//֪ͨä¯ÀÀÆ÷ÏÂÔØÎļþ¶ø²»ÊÇ´ò¿ª
Response.AppendHeader("Content-Disposition", "attachment;filename=" + HttpUtility.UrlEncode(DownloadFile.FullName, System.Text.Encoding.UTF8));
Response.AppendHeader("Content-Length", DownloadFile.Length.ToString());
&nb
Ïà¹ØÎĵµ£º
ÔÚ·þÎñÆ÷¶Ë£¬´¦ÀíÒ»¸öASP.NET Web FormÐèÒª¼¸¸ö²½Ö裬ÔÚÿ¸ö²½Öè¶¼»áÒý·¢¸÷ÖÖʼþ£¬Õâ¾ÍÔÊÐíÄã°ÑÍøÒ³²åÈëµ½ÈÎÒ»²½ÖèµÄ´¦ÀíÁ÷Öв¢ÇÒÏìÓ¦ÈκÎÄãËùÆÚÍûµÄ´¦Àí¡£
ÒÔÏÂÊÇASP.NETÍøÒ³´¦ÀíÁ÷ÖеöÖ÷Òª²½Öè
1.ÍøÒ³¿ò¼Ü³õʼ»¯
2.Óû§´úÂë³õʼ»¯
......
test.xml
<?xml version="1.0" encoding="utf-8" ?>
<root>
<R SecuCode="601600" Glossary="ѧITÍø²âÊÔ»ñÈ¡XML½á¹ûÏÔʾÕý³££¬¡£¡£¡£¡£¡£¡£¡£¹þ¹þ" />
<R SecuCode="600056" Glossary="²âÊÔµÚ¶þ¸ö£¬¡£¡£¡£¡£¡£¡£¡£¹þ¹þ" />
</root>
ÏÂÃæxml½âÎö ......
ÓÉÓÚasp.net ´¦Àí½ø³ÌÔÚmachine.configÅäÖÃÎļþÖеÄÅäÖÃΪ<processModel autoConfig="true" />£¬ÕâÒâζ×ÅÄãµÄasp.net Ó¦ÓóÌÐòʹÓõÄÐÔÄܲÎÊýÒÀÀµÓÚmachine.configµÄÅäÖá£
ÏÂÃæ¼¸¸ö²ÎÊýÊÇ×Ô¶¯ÅäÖõģº
maxWorkerThreads ºÍ maxIoThreads
minFreeThreads ºÍ minLocalRequestFreeThreads
minWorkerThreads
max ......
//postÇëÇó
string name = Request["name"].toString();
string name =Request.Form.Get("name").toString();
//getÇëÇó
string name = Request.QueryString["name"].toString();
µ«ÎÒ·¢ÏÖ ÎÞÂÛÊÇ·ñÊÇpostÓëget´«Öµ
¶¼¿ÉÓÃstring name = Request["name"].toString();
±íµ¥Ìá½»ÖÐgetºÍpost·½Ê½µ ......