文件名称:Progressbar
- 所属分类:
- C#编程
- 资源属性:
- [Windows] [Visual.Net] [Basic/ASP] [源码]
- 上传时间:
- 2012-11-26
- 文件大小:
- 84kb
- 下载次数:
- 0次
- 提 供 者:
- w*
- 相关连接:
- 无
- 下载说明:
- 别用迅雷下载,失败请重下,重下不扣分!
介绍说明--下载内容均来自于网络,请自行研究使用
该程序采用了jquery框架,实现了小文件上传。
两个地方需要解释
第一,如何知道监听的这个文件就是上传的这个文件实现机制很简单,就是让asp.net产生一个唯一的guid,这个id序号是唯一的,通过ajax取出来赋值给一个隐藏字段;第二,如何获取guid标志的文件信息?通过asp.net缓存机制实现,上传的过程中,不断的将上传信息往缓存里面写,直到文件上传完成,而在另外一个通过guid获取缓存的信息,信息包括你想要的信息,比如上传了多少字节、消耗了多长时间等。
程序核心页面
index.htm就是文件上传页面,提交form给UploadHandler目录下的Default.aspx,以实现文件上传。
ProgressHandler目录下三个文件为Abort.ashx、GenericGuid.ashx,Handler.ashx功能分别为:根据Guid取消正在上传的文件,生成Guid,根据Guid获取上传信息。
-The program uses the jquery fr a mework to achieve a small file upload.
Two areas that need explanation
First, how do you know listening to this file is the file upload mechanism is very simple to achieve, is to let asp.net generate a unique
guid, id number that is unique, taken out by ajax assigned to a hidden field second, how to get guid logo file information?
Achieved through the asp.net caching mechanism, the process of uploading, will continue to upload information to the cache and write until the file upload is complete, while in other
Outside a guid for the cached information through the information, including information you want, such as the number of bytes uploaded and consumes much time and so on.
Program core page
index.htm is the file upload page, submit the form to the UploadHandler directory Default.aspx, in order to achieve file uploads.
ProgressHandler directory three files to Abort.ashx, GenericGuid.ashx, Handler.ashx functions are: to take under the Guid
Con
两个地方需要解释
第一,如何知道监听的这个文件就是上传的这个文件实现机制很简单,就是让asp.net产生一个唯一的guid,这个id序号是唯一的,通过ajax取出来赋值给一个隐藏字段;第二,如何获取guid标志的文件信息?通过asp.net缓存机制实现,上传的过程中,不断的将上传信息往缓存里面写,直到文件上传完成,而在另外一个通过guid获取缓存的信息,信息包括你想要的信息,比如上传了多少字节、消耗了多长时间等。
程序核心页面
index.htm就是文件上传页面,提交form给UploadHandler目录下的Default.aspx,以实现文件上传。
ProgressHandler目录下三个文件为Abort.ashx、GenericGuid.ashx,Handler.ashx功能分别为:根据Guid取消正在上传的文件,生成Guid,根据Guid获取上传信息。
-The program uses the jquery fr a mework to achieve a small file upload.
Two areas that need explanation
First, how do you know listening to this file is the file upload mechanism is very simple to achieve, is to let asp.net generate a unique
guid, id number that is unique, taken out by ajax assigned to a hidden field second, how to get guid logo file information?
Achieved through the asp.net caching mechanism, the process of uploading, will continue to upload information to the cache and write until the file upload is complete, while in other
Outside a guid for the cached information through the information, including information you want, such as the number of bytes uploaded and consumes much time and so on.
Program core page
index.htm is the file upload page, submit the form to the UploadHandler directory Default.aspx, in order to achieve file uploads.
ProgressHandler directory three files to Abort.ashx, GenericGuid.ashx, Handler.ashx functions are: to take under the Guid
Con
(系统自动生成,下载前可以参看下载内容)
下载文件列表
Progressbar\App_Code\DownloadingFileInfo.cs
...........\........\FileUploadModule.cs
...........\........\LogUtil.cs
...........\........\UploadUtil.cs
...........\Global.asax
...........\index.htm
...........\Log\log.txt
...........\ProgressHandler\Abort.ashx
...........\...............\GenerateGuid.ashx
...........\...............\Handler.ashx
...........\Scripts\Ajax\ajax-progress-upload.js
...........\.......\....\GuidGet.js
...........\.......\jquery-1.4.2.min.js
...........\.......\jquery-ui-1.8.2.custom.min.js
...........\.......\ljq.lib.js
...........\.tyles\base.css
...........\......\Site.css
...........\UploadHandler\Default.aspx
...........\.............\Default.aspx.cs
...........\Web.config
...........\Scripts\Ajax
...........\Accessory
...........\App_Code
...........\App_Data
...........\Log
...........\ProgressHandler
...........\Scripts
...........\Styles
...........\UploadHandler
Progressbar
...........\........\FileUploadModule.cs
...........\........\LogUtil.cs
...........\........\UploadUtil.cs
...........\Global.asax
...........\index.htm
...........\Log\log.txt
...........\ProgressHandler\Abort.ashx
...........\...............\GenerateGuid.ashx
...........\...............\Handler.ashx
...........\Scripts\Ajax\ajax-progress-upload.js
...........\.......\....\GuidGet.js
...........\.......\jquery-1.4.2.min.js
...........\.......\jquery-ui-1.8.2.custom.min.js
...........\.......\ljq.lib.js
...........\.tyles\base.css
...........\......\Site.css
...........\UploadHandler\Default.aspx
...........\.............\Default.aspx.cs
...........\Web.config
...........\Scripts\Ajax
...........\Accessory
...........\App_Code
...........\App_Data
...........\Log
...........\ProgressHandler
...........\Scripts
...........\Styles
...........\UploadHandler
Progressbar