asp.net利用RAR實(shí)現(xiàn)文件壓縮解壓縮_ASP教程
推薦:凈化網(wǎng)絡(luò)環(huán)境 ASP程序?qū)崿F(xiàn)過(guò)濾臟話凈化網(wǎng)絡(luò)環(huán)境 ASP程序?qū)崿F(xiàn)過(guò)濾臟話 以下為引用的內(nèi)容: <!--#include file="../conn/dbconn1.asp"--> <!--#include
如果服務(wù)器上安裝了RAR程序,那么asp.net可以調(diào)用RAR實(shí)現(xiàn)文件壓縮與解壓縮。
不過(guò)要注意的是,由于Web程序不能直接調(diào)用客戶端的程序(除非用ActiveX,ActiveX幾乎被廢棄),所以如果要想實(shí)現(xiàn)讓用戶把本地文件用網(wǎng)頁(yè)解壓縮只有把文件上傳到服務(wù)器上再調(diào)用服務(wù)器上的RAR壓縮,同理要解壓縮本地的RAR文件可以把文件上傳到服務(wù)器解壓再拿回來(lái)。
本文講怎么在服務(wù)器端的目錄解壓縮文件!
效果圖
前臺(tái)代碼:
以下為引用的內(nèi)容: <%...@ Page Language="C#" AutoEventWireup="true" CodeFile="Default.aspx.cs" Inherits="_Default" %> <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml" > |
后臺(tái)代碼:
以下為引用的內(nèi)容: using System; |
服務(wù)器目錄
客戶端解壓縮的變通方法:
分享:Web設(shè)計(jì)里的軟件工程思想現(xiàn)在的網(wǎng)站規(guī)模越來(lái)越大,涉及到的部門、人員的數(shù)量也是越來(lái)越多。自然而然的,Web開發(fā)組的規(guī)模也是越來(lái)越復(fù)雜了,由此所帶來(lái)的管理難度也越來(lái)越大,在下面的文章里,我將與大家探討一些相關(guān)的W
- asp FSO 讀寫文件本文件實(shí)現(xiàn)代碼
- asp中isNull、isEmpty和空字符串的區(qū)別
- asp獲取用戶真實(shí)IP地址的方法
- asp連接sqlserver數(shù)據(jù)庫(kù)實(shí)現(xiàn)代碼
- asp中正則表達(dá)式過(guò)濾html代碼函數(shù)
- asp中g(shù)et post提交表單區(qū)別
- 網(wǎng)頁(yè)模板:ASP內(nèi)建對(duì)象Request
- xmlhttp的open方法使用詳解
- ASP的常用的自定義函數(shù)大全
- asp中用for循環(huán)的一個(gè)小技巧
- eWebEditor v3.8 列目錄
- ASP無(wú)組件分頁(yè)實(shí)現(xiàn)思路及代碼
ASP教程Rss訂閱編程教程搜索
ASP教程推薦
- 用網(wǎng)站地圖幫助搜索引擎
- 通過(guò)實(shí)例講解來(lái)學(xué)習(xí)ASP中的函數(shù)
- ASP中實(shí)現(xiàn)從dbf數(shù)據(jù)庫(kù)導(dǎo)出數(shù)據(jù)到sql表
- asp從緩存讀數(shù)據(jù)實(shí)例
- 解讀asp的RegExp對(duì)象正則表達(dá)式功能用法
- 在asp程序中過(guò)濾不文明字符的函數(shù)
- 實(shí)例詳解ASP中斷開記錄集的使用方法
- 如何提高自己的編程水平
- 解析ASP無(wú)組件上載,帶進(jìn)度條,多文件上載
- 技巧:得到剛剛插入的記錄的自動(dòng)編號(hào)值一例
- 相關(guān)鏈接:
- 教程說(shuō)明:
ASP教程-asp.net利用RAR實(shí)現(xiàn)文件壓縮解壓縮。