zoukankan      html  css  js  c++  java
  • asp.net文件上传进度条控件(破解版~没有时间限制) 多项自定义

    原版只能用30天,这个破解版可以长期用了(设置了时间2010-2110).

    曾祥展

    注册控件:

    <%@ Register TagPrefix="fup" Namespace="OboutInc.FileUpload" Assembly="FileUpload" %>
    

    调用控件:

    <form runat="server" id="form1">
      <input type="file" name="myFile1" /><br/>
      <input type="file" name="myFile2" /><br/>
      <input type="file" name="myFile3" /><br/>
      <ASP:LinkButton runat="server" text="上传" />
      &nbsp;&nbsp;&nbsp;
      <ASP:LinkButton runat="server" text="取消" onClientClick="Cancel(); return false;" /><br/>
      <br/>
     <fup:FileUploadProgress 
           OnClientProgressStopped   = "function(){alert('文件已上传');}"
           OnClientProgressStarted   = "Clear"
           OnClientServerException   = "ServerException"
           ShowUploadedFiles         = "true"
           runat                     = "server"
           ID                        = "uploadProgress"
           InnerFiles                = "true"
           StyleFile                 = "fup_styles/myStyle.css"
      LocalizationFile="fup_localization/en.xml" />
    
           

    后台代码:

    OboutFileCollection files = uploadProgress.Files;           
    for(int i=0; i < files.Count; i++)
    {
       OboutPostedFile file = files[i];
       file.SaveAs(MapPath("~/Uploaded/"+Path.GetFileName(file.FileName)));
    }
    文件结构:
    曾祥展2  下载地址:FileUploadProgress.rar       
  • 相关阅读:
    flask 基础
    新的项目部署
    linux (01) linux基础
    linux (04) linux安装mysql
    linux (06) redis安装
    linux (09) nginx反向代理,负载均衡
    linux (08) nginx入门详解
    linux (07) redis详解
    linux(05) 编译安装py3
    spring-boot war包部署(二)
  • 原文地址:https://www.cnblogs.com/zengxiangzhan/p/1651006.html
Copyright © 2011-2022 走看看