在.NET中利用XMLHTTP下载文件

利用XMLHTTP下载文件,和以前的方法一样,先添加引用-COM-Microsoft Xml 3.0,然后在代码开始处写:

<br />using MSXML2;<br />

下面就是主要的代码:

&lt;/td&gt;<br />        &lt;/tr&gt;<br />    &lt;/tbody&gt;<br />&lt;/table&gt;<br />&lt;div style=&quot;border: 0.5pt solid windowtext; padding: 4px 5.4pt; background: rgb(230, 230, 230) none repeat scroll 0%; -moz-background-clip: -moz-initial; -moz-background-origin: -moz-initial; -moz-background-inline-policy: -moz-initial; width: 95%;&quot;&gt;<br />&lt;div&gt;&lt;img align=&quot;top&quot; src=&quot;http://images.youkuaiyun.com/syntaxhighlighting/OutliningIndicators/None.gif&quot; _fcksavedurl=&quot;http://images.youkuaiyun.com/syntaxhighlighting/OutliningIndicators/None.gif&quot; alt=&quot;&quot; /&gt;&lt;span style=&quot;color: rgb(0, 0, 255);&quot;&gt;private&lt;/span&gt;&lt;span style=&quot;color: rgb(0, 0, 0);&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;color: rgb(0, 0, 255);&quot;&gt;void&lt;/span&gt;&lt;span style=&quot;color: rgb(0, 0, 0);&quot;&gt;&amp;nbsp;Page_Load(&lt;/span&gt;&lt;span style=&quot;color: rgb(0, 0, 255);&quot;&gt;object&lt;/span&gt;&lt;span style=&quot;color: rgb(0, 0, 0);&quot;&gt;&amp;nbsp;sender,&amp;nbsp;System.EventArgs&amp;nbsp;e)&lt;br /&gt;&lt;img align=&quot;top&quot; onclick=&quot;this.style.display='none'; document.getElementById('_58_1137_Open_Text').style.display='none'; document.getElementById('_58_1137_Closed_Image').style.display='inline'; document.getElementById('_58_1137_Closed_Text').style.display='inline';&quot; src=&quot;http://images.youkuaiyun.com/syntaxhighlighting/OutliningIndicators/ExpandedBlockStart.gif&quot; _fcksavedurl=&quot;http://images.youkuaiyun.com/syntaxhighlighting/OutliningIndicators/ExpandedBlockStart.gif&quot; id=&quot;_58_1137_Open_Image&quot; alt=&quot;&quot; /&gt;&lt;img align=&quot;top&quot; onclick=&quot;this.style.display='none'; document.getElementById('_58_1137_Closed_Text').style.display='none'; document.getElementById('_58_1137_Open_Image').style.display='inline'; document.getElementById('_58_1137_Open_Text').style.display='inline';&quot; style=&quot;display: none;&quot; src=&quot;http://images.youkuaiyun.com/syntaxhighlighting/OutliningIndicators/ContractedBlock.gif&quot; _fcksavedurl=&quot;http://images.youkuaiyun.com/syntaxhighlighting/OutliningIndicators/ContractedBlock.gif&quot; id=&quot;_58_1137_Closed_Image&quot; alt=&quot;&quot; /&gt;&lt;/span&gt;&lt;span style=&quot;border: 1px solid rgb(128, 128, 128); background-color: rgb(255, 255, 255); display: none;&quot; id=&quot;_58_1137_Closed_Text&quot;&gt;...&lt;/span&gt;&lt;span id=&quot;_58_1137_Open_Text&quot;&gt;&lt;span style=&quot;color: rgb(0, 0, 0);&quot;&gt;{&lt;br /&gt;&lt;img align=&quot;top&quot; src=&quot;http://images.youkuaiyun.com/syntaxhighlighting/OutliningIndicators/InBlock.gif&quot; _fcksavedurl=&quot;http://images.youkuaiyun.com/syntaxhighlighting/OutliningIndicators/InBlock.gif&quot; alt=&quot;&quot; /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;color: rgb(0, 0, 255);&quot;&gt;string&lt;/span&gt;&lt;span style=&quot;color: rgb(0, 0, 0);&quot;&gt;&amp;nbsp;Url&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;color: rgb(0, 0, 0);&quot;&gt;=&lt;/span&gt;&lt;span style=&quot;color: rgb(0, 0, 0);&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;color: rgb(0, 0, 0);&quot;&gt;&amp;quot;&lt;/span&gt;&lt;span style=&quot;color: rgb(0, 0, 0);&quot;&gt;http://dotnet.aspx.cc/Images/logoSite.gif&lt;/span&gt;&lt;span style=&quot;color: rgb(0, 0, 0);&quot;&gt;&amp;quot;&lt;/span&gt;&lt;span style=&quot;color: rgb(0, 0, 0);&quot;&gt;;&lt;br /&gt;&lt;img align=&quot;top&quot; src=&quot;http://images.youkuaiyun.com/syntaxhighlighting/OutliningIndicators/InBlock.gif&quot; _fcksavedurl=&quot;http://images.youkuaiyun.com/syntaxhighlighting/OutliningIndicators/InBlock.gif&quot; alt=&quot;&quot; /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;color: rgb(0, 0, 255);&quot;&gt;string&lt;/span&gt;&lt;span style=&quot;color: rgb(0, 0, 0);&quot;&gt;&amp;nbsp;StringFileName&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;color: rgb(0, 0, 0);&quot;&gt;=&lt;/span&gt;&lt;span style=&quot;color: rgb(0, 0, 0);&quot;&gt;&amp;nbsp;Url.Substring(Url.LastIndexOf(&lt;/span&gt;&lt;span style=&quot;color: rgb(0, 0, 0);&quot;&gt;&amp;quot;&lt;/span&gt;&lt;span style=&quot;color: rgb(0, 0, 0);&quot;&gt;/&lt;/span&gt;&lt;span style=&quot;color: rgb(0, 0, 0);&quot;&gt;&amp;quot;&lt;/span&gt;&lt;span style=&quot;color: rgb(0, 0, 0);&quot;&gt;)&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;color: rgb(0, 0, 0);&quot;&gt;+&lt;/span&gt;&lt;span style=&quot;color: rgb(0, 0, 0);&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;color: rgb(0, 0, 0);&quot;&gt;1&lt;/span&gt;&lt;span style=&quot;color: rgb(0, 0, 0);&quot;&gt;);&lt;br /&gt;&lt;img align=&quot;top&quot; src=&quot;http://images.youkuaiyun.com/syntaxhighlighting/OutliningIndicators/InBlock.gif&quot; _fcksavedurl=&quot;http://images.youkuaiyun.com/syntaxhighlighting/OutliningIndicators/InBlock.gif&quot; alt=&quot;&quot; /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;color: rgb(0, 128, 0);&quot;&gt;//&lt;/span&gt;&lt;span style=&quot;color: rgb(0, 128, 0);&quot;&gt;获取当前正在执行的服务器应用程序的根目录的物理文件系统路径&lt;/span&gt;&lt;span style=&quot;color: rgb(0, 128, 0);&quot;&gt;&lt;br /&gt;&lt;img align=&quot;top&quot; src=&quot;http://images.youkuaiyun.com/syntaxhighlighting/OutliningIndicators/InBlock.gif&quot; _fcksavedurl=&quot;http://images.youkuaiyun.com/syntaxhighlighting/OutliningIndicators/InBlock.gif&quot; alt=&quot;&quot; /&gt;&lt;/span&gt;&lt;span style=&quot;color: rgb(0, 0, 0);&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;color: rgb(0, 0, 255);&quot;&gt;string&lt;/span&gt;&lt;span style=&quot;color: rgb(0, 0, 0);&quot;&gt;&amp;nbsp;StringFilePath&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;color: rgb(0, 0, 0);&quot;&gt;=&lt;/span&gt;&lt;span style=&quot;color: rgb(0, 0, 0);&quot;&gt;&amp;nbsp;Request.PhysicalApplicationPath;&lt;br /&gt;&lt;img align=&quot;top&quot; src=&quot;http://images.youkuaiyun.com/syntaxhighlighting/OutliningIndicators/InBlock.gif&quot; _fcksavedurl=&quot;http://images.youkuaiyun.com/syntaxhighlighting/OutliningIndicators/InBlock.gif&quot; alt=&quot;&quot; /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;color: rgb(0, 0, 255);&quot;&gt;if&lt;/span&gt;&lt;span style=&quot;color: rgb(0, 0, 0);&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color: rgb(0, 0, 0);&quot;&gt;!&lt;/span&gt;&lt;span style=&quot;color: rgb(0, 0, 0);&quot;&gt;StringFilePath.EndsWith(&lt;/span&gt;&lt;span style=&quot;color: rgb(0, 0, 0);&quot;&gt;&amp;quot;&lt;/span&gt;&lt;span style=&quot;color: rgb(0, 0, 0);&quot;&gt;/&lt;/span&gt;&lt;span style=&quot;color: rgb(0, 0, 0);&quot;&gt;&amp;quot;&lt;/span&gt;&lt;span style=&quot;color: rgb(0, 0, 0);&quot;&gt;))&amp;nbsp;StringFilePath&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;color: rgb(0, 0, 0);&quot;&gt;+=&lt;/span&gt;&lt;span style=&quot;color: rgb(0, 0, 0);&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;color: rgb(0, 0, 0);&quot;&gt;&amp;quot;&lt;/span&gt;&lt;span style=&quot;color: rgb(0, 0, 0);&quot;&gt;/&lt;/span&gt;&lt;span style=&quot;color: rgb(0, 0, 0);&quot;&gt;&amp;quot;&lt;/span&gt;&lt;span style=&quot;color: rgb(0, 0, 0);&quot;&gt;;&lt;br /&gt;&lt;img align=&quot;top&quot; src=&quot;http://images.youkuaiyun.com/syntaxhighlighting/OutliningIndicators/InBlock.gif&quot; _fcksavedurl=&quot;http://images.youkuaiyun.com/syntaxhighlighting/OutliningIndicators/InBlock.gif&quot; alt=&quot;&quot; /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;MSXML2.XMLHTTP&amp;nbsp;_xmlhttp&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;color: rgb(0, 0, 0);&quot;&gt;=&lt;/span&gt;&lt;span style=&quot;color: rgb(0, 0, 0);&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;color: rgb(0, 0, 255);&quot;&gt;new&lt;/span&gt;&lt;span style=&quot;color: rgb(0, 0, 0);&quot;&gt;&amp;nbsp;MSXML2.XMLHTTPClass();&lt;br /&gt;&lt;img align=&quot;top&quot; src=&quot;http://images.youkuaiyun.com/syntaxhighlighting/OutliningIndicators/InBlock.gif&quot; _fcksavedurl=&quot;http://images.youkuaiyun.com/syntaxhighlighting/OutliningIndicators/InBlock.gif&quot; alt=&quot;&quot; /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;_xmlhttp.open(&lt;/span&gt;&lt;span style=&quot;color: rgb(0, 0, 0);&quot;&gt;&amp;quot;&lt;/span&gt;&lt;span style=&quot;color: rgb(0, 0, 0);&quot;&gt;GET&lt;/span&gt;&lt;span style=&quot;color: rgb(0, 0, 0);&quot;&gt;&amp;quot;&lt;/span&gt;&lt;span style=&quot;color: rgb(0, 0, 0);&quot;&gt;,Url,&lt;/span&gt;&lt;span style=&quot;color: rgb(0, 0, 255);&quot;&gt;false&lt;/span&gt;&lt;span style=&quot;color: rgb(0, 0, 0);&quot;&gt;,&lt;/span&gt;&lt;span style=&quot;color: rgb(0, 0, 255);&quot;&gt;null&lt;/span&gt;&lt;span style=&quot;color: rgb(0, 0, 0);&quot;&gt;,&lt;/span&gt;&lt;span style=&quot;color: rgb(0, 0, 255);&quot;&gt;null&lt;/span&gt;&lt;span style=&quot;color: rgb(0, 0, 0);&quot;&gt;);&lt;br /&gt;&lt;img align=&quot;top&quot; src=&quot;http://images.youkuaiyun.com/syntaxhighlighting/OutliningIndicators/InBlock.gif&quot; _fcksavedurl=&quot;http://images.youkuaiyun.com/syntaxhighlighting/OutliningIndicators/InBlock.gif&quot; alt=&quot;&quot; /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;_xmlhttp.send(&lt;/span&gt;&lt;span style=&quot;color: rgb(0, 0, 0);&quot;&gt;&amp;quot;&amp;quot;&lt;/span&gt;&lt;span style=&quot;color: rgb(0, 0, 0);&quot;&gt;);&lt;br /&gt;&lt;img align=&quot;top&quot; src=&quot;http://images.youkuaiyun.com/syntaxhighlighting/OutliningIndicators/InBlock.gif&quot; _fcksavedurl=&quot;http://images.youkuaiyun.com/syntaxhighlighting/OutliningIndicators/InBlock.gif&quot; alt=&quot;&quot; /&gt;&lt;/span&gt;&lt;span style=&quot;color: rgb(0, 0, 255);&quot;&gt;if&lt;/span&gt;&lt;span style=&quot;color: rgb(0, 0, 0);&quot;&gt;(&amp;nbsp;_xmlhttp.readyState&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;color: rgb(0, 0, 0);&quot;&gt;==&lt;/span&gt;&lt;span style=&quot;color: rgb(0, 0, 0);&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;color: rgb(0, 0, 0);&quot;&gt;4&lt;/span&gt;&lt;span style=&quot;color: rgb(0, 0, 0);&quot;&gt;&amp;nbsp;)&lt;br /&gt;&lt;img align=&quot;top&quot; onclick=&quot;this.style.display='none'; document.getElementById('_483_1072_Open_Text').style.display='none'; document.getElementById('_483_1072_Closed_Image').style.display='inline'; document.getElementById('_483_1072_Closed_Text').style.display='inline';&quot; src=&quot;http://images.youkuaiyun.com/syntaxhighlighting/OutliningIndicators/ExpandedSubBlockStart.gif&quot; _fcksavedurl=&quot;http://images.youkuaiyun.com/syntaxhighlighting/OutliningIndicators/ExpandedSubBlockStart.gif&quot; id=&quot;_483_1072_Open_Image&quot; alt=&quot;&quot; /&gt;&lt;img align=&quot;top&quot; onclick=&quot;this.style.display='none'; document.getElementById('_483_1072_Closed_Text').style.display='none'; document.getElementById('_483_1072_Open_Image').style.display='inline'; document.getElementById('_483_1072_Open_Text').style.display='inline';&quot; style=&quot;display: none;&quot; src=&quot;http://images.youkuaiyun.com/syntaxhighlighting/OutliningIndicators/ContractedSubBlock.gif&quot; _fcksavedurl=&quot;http://images.youkuaiyun.com/syntaxhighlighting/OutliningIndicators/ContractedSubBlock.gif&quot; id=&quot;_483_1072_Closed_Image&quot; alt=&quot;&quot; /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;border: 1px solid rgb(128, 128, 128); background-color: rgb(255, 255, 255); display: none;&quot; id=&quot;_483_1072_Closed_Text&quot;&gt;...&lt;/span&gt;&lt;span id=&quot;_483_1072_Open_Text&quot;&gt;&lt;span style=&quot;color: rgb(0, 0, 0);&quot;&gt;{&lt;br /&gt;&lt;img align=&quot;top&quot; src=&quot;http://images.youkuaiyun.com/syntaxhighlighting/OutliningIndicators/InBlock.gif&quot; _fcksavedurl=&quot;http://images.youkuaiyun.com/syntaxhighlighting/OutliningIndicators/InBlock.gif&quot; alt=&quot;&quot; /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;color: rgb(0, 0, 255);&quot;&gt;if&lt;/span&gt;&lt;span style=&quot;color: rgb(0, 0, 0);&quot;&gt;(System.IO.File.Exists(StringFilePath&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;color: rgb(0, 0, 0);&quot;&gt;+&lt;/span&gt;&lt;span style=&quot;color: rgb(0, 0, 0);&quot;&gt;&amp;nbsp;StringFileName))&lt;br /&gt;&lt;img align=&quot;top&quot; src=&quot;http://images.youkuaiyun.com/syntaxhighlighting/OutliningIndicators/InBlock.gif&quot; _fcksavedurl=&quot;http://images.youkuaiyun.com/syntaxhighlighting/OutliningIndicators/InBlock.gif&quot; alt=&quot;&quot; /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;System.IO.File.Delete(StringFilePath&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;color: rgb(0, 0, 0);&quot;&gt;+&lt;/span&gt;&lt;span style=&quot;color: rgb(0, 0, 0);&quot;&gt;&amp;nbsp;StringFileName);&lt;br /&gt;&lt;img align=&quot;top&quot; src=&quot;http://images.youkuaiyun.com/syntaxhighlighting/OutliningIndicators/InBlock.gif&quot; _fcksavedurl=&quot;http://images.youkuaiyun.com/syntaxhighlighting/OutliningIndicators/InBlock.gif&quot; alt=&quot;&quot; /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;br /&gt;&lt;img align=&quot;top&quot; src=&quot;http://images.youkuaiyun.com/syntaxhighlighting/OutliningIndicators/InBlock.gif&quot; _fcksavedurl=&quot;http://images.youkuaiyun.com/syntaxhighlighting/OutliningIndicators/InBlock.gif&quot; alt=&quot;&quot; /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;System.IO.FileStream&amp;nbsp;fs&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;color: rgb(0, 0, 0);&quot;&gt;=&lt;/span&gt;&lt;span style=&quot;color: rgb(0, 0, 0);&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;color: rgb(0, 0, 255);&quot;&gt;new&lt;/span&gt;&lt;span style=&quot;color: rgb(0, 0, 0);&quot;&gt;&amp;nbsp;System.IO.FileStream(StringFilePath&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;color: rgb(0, 0, 0);&quot;&gt;+&lt;/span&gt;&lt;span style=&quot;color: rgb(0, 0, 0);&quot;&gt;&amp;nbsp;StringFileName,&amp;nbsp;System.IO.FileMode.CreateNew);&lt;br /&gt;&lt;img align=&quot;top&quot; src=&quot;http://images.youkuaiyun.com/syntaxhighlighting/OutliningIndicators/InBlock.gif&quot; _fcksavedurl=&quot;http://images.youkuaiyun.com/syntaxhighlighting/OutliningIndicators/InBlock.gif&quot; alt=&quot;&quot; /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;color: rgb(0, 128, 0);&quot;&gt;//&lt;/span&gt;&lt;span style=&quot;color: rgb(0, 128, 0);&quot;&gt;Write&amp;nbsp;The&amp;nbsp;_xmlhttp.responseBody&amp;nbsp;into&amp;nbsp;Local&amp;nbsp;Stream&amp;nbsp;fs&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;color: rgb(0, 128, 0);&quot;&gt;&lt;br /&gt;&lt;img align=&quot;top&quot; src=&quot;http://images.youkuaiyun.com/syntaxhighlighting/OutliningIndicators/InBlock.gif&quot; _fcksavedurl=&quot;http://images.youkuaiyun.com/syntaxhighlighting/OutliningIndicators/InBlock.gif&quot; alt=&quot;&quot; /&gt;&lt;/span&gt;&lt;span style=&quot;color: rgb(0, 0, 0);&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;System.IO.BinaryWriter&amp;nbsp;w&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;color: rgb(0, 0, 0);&quot;&gt;=&lt;/span&gt;&lt;span style=&quot;color: rgb(0, 0, 0);&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;color: rgb(0, 0, 255);&quot;&gt;new&lt;/span&gt;&lt;span style=&quot;color: rgb(0, 0, 0);&quot;&gt;&amp;nbsp;System.IO.BinaryWriter(fs);&lt;br /&gt;&lt;img align=&quot;top&quot; src=&quot;http://images.youkuaiyun.com/syntaxhighlighting/OutliningIndicators/InBlock.gif&quot; _fcksavedurl=&quot;http://images.youkuaiyun.com/syntaxhighlighting/OutliningIndicators/InBlock.gif&quot; alt=&quot;&quot; /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;w.Write((&lt;/span&gt;&lt;span style=&quot;color: rgb(0, 0, 255);&quot;&gt;byte&lt;/span&gt;&lt;span style=&quot;color: rgb(0, 0, 0);&quot;&gt;[])_xmlhttp.responseBody);&lt;br /&gt;&lt;img align=&quot;top&quot; src=&quot;http://images.youkuaiyun.com/syntaxhighlighting/OutliningIndicators/InBlock.gif&quot; _fcksavedurl=&quot;http://images.youkuaiyun.com/syntaxhighlighting/OutliningIndicators/InBlock.gif&quot; alt=&quot;&quot; /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;w.Close();&lt;br /&gt;&lt;img align=&quot;top&quot; src=&quot;http://images.youkuaiyun.com/syntaxhighlighting/OutliningIndicators/InBlock.gif&quot; _fcksavedurl=&quot;http://images.youkuaiyun.com/syntaxhighlighting/OutliningIndicators/InBlock.gif&quot; alt=&quot;&quot; /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;fs.Close();&lt;br /&gt;&lt;img align=&quot;top&quot; src=&quot;http://images.youkuaiyun.com/syntaxhighlighting/OutliningIndicators/InBlock.gif&quot; _fcksavedurl=&quot;http://images.youkuaiyun.com/syntaxhighlighting/OutliningIndicators/InBlock.gif&quot; alt=&quot;&quot; /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;Response.Write&amp;nbsp;(&lt;/span&gt;&lt;span style=&quot;color: rgb(0, 0, 0);&quot;&gt;&amp;quot;&lt;/span&gt;&lt;span style=&quot;color: rgb(0, 0, 0);&quot;&gt;文件已经得到。&amp;lt;br&amp;gt;&amp;lt;a&amp;nbsp;href='&lt;/span&gt;&lt;span style=&quot;color: rgb(0, 0, 0);&quot;&gt;&amp;quot;&lt;/span&gt;&lt;span style=&quot;color: rgb(0, 0, 0);&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;color: rgb(0, 0, 0);&quot;&gt;+&lt;/span&gt;&lt;span style=&quot;color: rgb(0, 0, 0);&quot;&gt;&amp;nbsp;Request.ApplicationPath&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;color: rgb(0, 0, 0);&quot;&gt;+&lt;/span&gt;&lt;span style=&quot;color: rgb(0, 0, 0);&quot;&gt;&amp;nbsp;StringFileName&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;color: rgb(0, 0, 0);&quot;&gt;+&lt;/span&gt;&lt;span style=&quot;color: rgb(0, 0, 0);&quot;&gt;&amp;quot;&lt;/span&gt;&lt;span style=&quot;color: rgb(0, 0, 0);&quot;&gt;'&amp;nbsp;target='_blank'&amp;gt;&lt;/span&gt;&lt;span style=&quot;color: rgb(0, 0, 0);&quot;&gt;&amp;quot;&lt;/span&gt;&lt;span style=&quot;color: rgb(0, 0, 0);&quot;&gt;);&lt;br /&gt;&lt;img align=&quot;top&quot; src=&quot;http://images.youkuaiyun.com/syntaxhighlighting/OutliningIndicators/InBlock.gif&quot; _fcksavedurl=&quot;http://images.youkuaiyun.com/syntaxhighlighting/OutliningIndicators/InBlock.gif&quot; alt=&quot;&quot; /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;Response.Write&amp;nbsp;(&lt;/span&gt;&lt;span style=&quot;color: rgb(0, 0, 0);&quot;&gt;&amp;quot;&lt;/span&gt;&lt;span style=&quot;color: rgb(0, 0, 0);&quot;&gt;查看&lt;/span&gt;&lt;span style=&quot;color: rgb(0, 0, 0);&quot;&gt;&amp;quot;&lt;/span&gt;&lt;span style=&quot;color: rgb(0, 0, 0);&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;color: rgb(0, 0, 0);&quot;&gt;+&lt;/span&gt;&lt;span style=&quot;color: rgb(0, 0, 0);&quot;&gt;&amp;nbsp;StringFileName&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;color: rgb(0, 0, 0);&quot;&gt;+&lt;/span&gt;&lt;span style=&quot;color: rgb(0, 0, 0);&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;color: rgb(0, 0, 0);&quot;&gt;&amp;quot;&lt;/span&gt;&lt;span style=&quot;color: rgb(0, 0, 0);&quot;&gt;&amp;lt;/a&amp;gt;&lt;/span&gt;&lt;span style=&quot;color: rgb(0, 0, 0);&quot;&gt;&amp;quot;&lt;/span&gt;&lt;span style=&quot;color: rgb(0, 0, 0);&quot;&gt;);&lt;br /&gt;&lt;img align=&quot;top&quot; src=&quot;http://images.youkuaiyun.com/syntaxhighlighting/OutliningIndicators/ExpandedSubBlockEnd.gif&quot; _fcksavedurl=&quot;http://images.youkuaiyun.com/syntaxhighlighting/OutliningIndicators/ExpandedSubBlockEnd.gif&quot; alt=&quot;&quot; /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;}&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;color: rgb(0, 0, 0);&quot;&gt;&lt;br /&gt;&lt;img align=&quot;top&quot; src=&quot;http://images.youkuaiyun.com/syntaxhighlighting/OutliningIndicators/InBlock.gif&quot; _fcksavedurl=&quot;http://images.youkuaiyun.com/syntaxhighlighting/OutliningIndicators/InBlock.gif&quot; alt=&quot;&quot; /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;color: rgb(0, 0, 255);&quot;&gt;else&lt;/span&gt;&lt;span style=&quot;color: rgb(0, 0, 0);&quot;&gt;&lt;br /&gt;&lt;img align=&quot;top&quot; src=&quot;http://images.youkuaiyun.com/syntaxhighlighting/OutliningIndicators/InBlock.gif&quot; _fcksavedurl=&quot;http://images.youkuaiyun.com/syntaxhighlighting/OutliningIndicators/InBlock.gif&quot; alt=&quot;&quot; /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;Response.Write&amp;nbsp;(_xmlhttp.statusText);&lt;br /&gt;&lt;img align=&quot;top&quot; src=&quot;http://images.youkuaiyun.com/syntaxhighlighting/OutliningIndicators/InBlock.gif&quot; _fcksavedurl=&quot;http://images.youkuaiyun.com/syntaxhighlighting/OutliningIndicators/InBlock.gif&quot; alt=&quot;&quot; /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;Response.End();&lt;br /&gt;&lt;img align=&quot;top&quot; src=&quot;http://images.youkuaiyun.com/syntaxhighlighting/OutliningIndicators/ExpandedBlockEnd.gif&quot; _fcksavedurl=&quot;http://images.youkuaiyun.com/syntaxhighlighting/OutliningIndicators/ExpandedBlockEnd.gif&quot; alt=&quot;&quot; /&gt;}&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;<br />&lt;/div&gt;
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值