资源简介

c#上传文件的控件,支持ajax,非常好用

资源截图

代码片段和文件信息

using System;
using System.Data;
using System.Configuration;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;
using System.Web.UI.HtmlControls;

public class FileItem
{
    public FileItem(string dir CuteWebUI.AttachmentItem item)
{
_dir=dir;
_guid = item.FileGuid;
_name = item.FileName;
_size = item.FileSize;
_tempname = item.GetTempFilePath();
}

public FileItem(string dir)
{
_dir=dir;
}

string _dir;
Guid _guid;
string _name;
int _size;
string _tempname;

public string Directory
{
get
{
return _dir;
}
}

public Guid FileGuid
{
get
{
return _guid;
}
set
{
_guid = value;
}
}
public string Fil

 属性            大小     日期    时间   名称
----------- ---------  ---------- -----  ----
     目录           0  2009-08-10 14:59  AdvancedCS20\
     文件        6449  2008-09-24 14:27  AdvancedCS20\Ajax-based-File-Forum.aspx
     文件        9038  2008-09-25 04:40  AdvancedCS20\Ajax-based-File-storage.aspx
     文件        7397  2009-03-24 12:40  AdvancedCS20\Ajax-based-user-profile.aspx
     目录           0  2009-08-10 14:59  AdvancedCS20\App_Code\
     文件        1306  2008-02-26 04:50  AdvancedCS20\App_Code\FileItem.cs
     文件        8614  2008-03-08 05:01  AdvancedCS20\App_Code\SampleDB.cs
     文件        4027  2007-01-25 18:41  AdvancedCS20\App_Code\SampleDB_Instance.cs
     文件       19312  2008-03-08 03:02  AdvancedCS20\App_Code\SampleUtill.cs
     目录           0  2009-08-10 14:59  AdvancedCS20\App_Data\
     文件       14930  2008-03-08 05:01  AdvancedCS20\App_Data\InstallSamples.sql
     目录           0  2010-03-09 01:21  AdvancedCS20\Bin\
     文件         982  2010-01-12 15:28  AdvancedCS20\Bin\AjaxUploader.lic
     文件      286720  2010-03-09 01:21  AdvancedCS20\Bin\CuteWebUI.AjaxUploader.dll
     目录           0  2009-08-10 14:59  AdvancedCS20\Controls\
     文件        2387  2008-03-07 13:58  AdvancedCS20\Controls\SelectMyFile.ascx
     文件        3405  2009-01-15 22:34  AdvancedCS20\default.htm
     文件         286  2009-01-15 19:21  AdvancedCS20\demo.css
     文件        2704  2008-05-18 14:26  AdvancedCS20\Demo.htm
     文件         876  2008-09-23 18:22  AdvancedCS20\Demo.master
     文件        4213  2008-09-30 02:42  AdvancedCS20\Deployment.htm
     文件        1391  2008-03-07 13:58  AdvancedCS20\DownloadFile.ashx
     文件        9646  2008-09-24 14:28  AdvancedCS20\EditTopic.aspx
     目录           0  2009-02-16 15:08  AdvancedCS20\Files\
     文件        1697  2009-01-15 16:45  AdvancedCS20\main.css
     文件       13815  2008-09-24 14:28  AdvancedCS20\ReadTopic.aspx
     目录           0  2009-08-10 14:59  AdvancedCS20\sampleimages\
     文件       36033  2009-01-15 09:56  AdvancedCS20\sampleimages\Ajax_Upload_Screen-200.gif
     文件         792  2007-01-26 15:57  AdvancedCS20\sampleimages\anonymous.gif
     文件         147  2008-03-02 06:59  AdvancedCS20\sampleimages\bgmenu.gif
     文件        5845  2008-02-21 04:23  AdvancedCS20\sampleimages\buy-now.gif
............此处省略724个文件信息

评论

共有 条评论