富贵资源网 Design By www.hznty.com
大文件上传控件(包含进度条)
使用说明如下:
<summary>
上传进度条控件
</summary>
<example>
Web.config 配置
<?xml version="1.0"?>
<configuration>
<configSections>
<!--上传节点-->
<sectionGroup name="slickUpload">
<section name="uploadLocationProvider" type="Common.SlickUpload.Configuration.UploadLocationProviderHandler, Common"/>
</sectionGroup>
</configSections>
<system.web>
<httpRuntime maxRequestLength="2024000" executionTimeout="300"/>
<httpHandlers>
<add verb="*" path="CommonToolsASHX.ashx" type="Common.Web.AppControl.CommonToolsASHX, Common" />
<add verb="*" path="CommonToolsASHX_XML.ashx" type="Common.Web.AppControl.CommonToolsASHX_XML, Common" />
</httpHandlers>
<!--上传Modules-->
<httpModules>
<add name="HttpUploadModule" type="Common.SlickUpload.HttpUploadModule, Common"/>
</httpModules>
</system.web>
<appSettings>
<!--上传临时路径-->
<add key="uploadPath" value="c:TDdownloadtemp"/>
<!--许可上传页面,多个页面用';'分开-->
<add key="HttpUploadModulePageGoOn" value="Upload.aspx;"/>
</appSettings>
</configuration>
ASPX页面
//顶部
<%@ Register Assembly="Common" Namespace="Common.Web.AppControl" TagPrefix="cc1" %>
//form内
<asp:FileUpload ID="fileUploadFile" runat="server" />
<asp:Button ID="BtnUpload" runat="server" OnClick="Button1_Click" Text="Upload" />
<asp:HyperLink ID="hyCancel" runat="server">Cancel</asp:HyperLink>
<cc1:WebUploadProgressBar ID="WebUploadProgressBarControl" runat="server" UploadPath="C:TDdownload"></cc1:WebUploadProgressBar>
ASPX对应的CS代码
protected void Page_Load(object sender, EventArgs e)
{
//绑定上传客户端javascript事件
this.BtnUpload.OnClientClick = this.WebUploadProgressBarControl.GetUploadClick_Javascript;
//绑定上传取消客户端javascript事件
this.hyCancel.NavigateUrl = "javascript:" + this.WebUploadProgressBarControl.GetUploadCancelClick_Javascript;
}
protected void BtnUpload_Click(object sender, EventArgs e)
{
//上传文件
this.WebUploadProgressBarControl.SaveUploadFiles();
}
</example>
<remarks>必须在IIS站点下设置端口或虚拟目录方可测试通过,又问题请和zljGood@hotmail.com联系</remarks>
使用说明如下:
<summary>
上传进度条控件
</summary>
<example>
Web.config 配置
<?xml version="1.0"?>
<configuration>
<configSections>
<!--上传节点-->
<sectionGroup name="slickUpload">
<section name="uploadLocationProvider" type="Common.SlickUpload.Configuration.UploadLocationProviderHandler, Common"/>
</sectionGroup>
</configSections>
<system.web>
<httpRuntime maxRequestLength="2024000" executionTimeout="300"/>
<httpHandlers>
<add verb="*" path="CommonToolsASHX.ashx" type="Common.Web.AppControl.CommonToolsASHX, Common" />
<add verb="*" path="CommonToolsASHX_XML.ashx" type="Common.Web.AppControl.CommonToolsASHX_XML, Common" />
</httpHandlers>
<!--上传Modules-->
<httpModules>
<add name="HttpUploadModule" type="Common.SlickUpload.HttpUploadModule, Common"/>
</httpModules>
</system.web>
<appSettings>
<!--上传临时路径-->
<add key="uploadPath" value="c:TDdownloadtemp"/>
<!--许可上传页面,多个页面用';'分开-->
<add key="HttpUploadModulePageGoOn" value="Upload.aspx;"/>
</appSettings>
</configuration>
ASPX页面
//顶部
<%@ Register Assembly="Common" Namespace="Common.Web.AppControl" TagPrefix="cc1" %>
//form内
<asp:FileUpload ID="fileUploadFile" runat="server" />
<asp:Button ID="BtnUpload" runat="server" OnClick="Button1_Click" Text="Upload" />
<asp:HyperLink ID="hyCancel" runat="server">Cancel</asp:HyperLink>
<cc1:WebUploadProgressBar ID="WebUploadProgressBarControl" runat="server" UploadPath="C:TDdownload"></cc1:WebUploadProgressBar>
ASPX对应的CS代码
protected void Page_Load(object sender, EventArgs e)
{
//绑定上传客户端javascript事件
this.BtnUpload.OnClientClick = this.WebUploadProgressBarControl.GetUploadClick_Javascript;
//绑定上传取消客户端javascript事件
this.hyCancel.NavigateUrl = "javascript:" + this.WebUploadProgressBarControl.GetUploadCancelClick_Javascript;
}
protected void BtnUpload_Click(object sender, EventArgs e)
{
//上传文件
this.WebUploadProgressBarControl.SaveUploadFiles();
}
</example>
<remarks>必须在IIS站点下设置端口或虚拟目录方可测试通过,又问题请和zljGood@hotmail.com联系</remarks>
富贵资源网 Design By www.hznty.com
广告合作:本站广告合作请联系QQ:858582 申请时备注:广告合作(否则不回)
免责声明:本站资源来自互联网收集,仅供用于学习和交流,请遵循相关法律法规,本站一切资源不代表本站立场,如有侵权、后门、不妥请联系本站删除!
免责声明:本站资源来自互联网收集,仅供用于学习和交流,请遵循相关法律法规,本站一切资源不代表本站立场,如有侵权、后门、不妥请联系本站删除!
富贵资源网 Design By www.hznty.com
暂无评论...
稳了!魔兽国服回归的3条重磅消息!官宣时间再确认!
昨天有一位朋友在大神群里分享,自己亚服账号被封号之后居然弹出了国服的封号信息对话框。
这里面让他访问的是一个国服的战网网址,com.cn和后面的zh都非常明白地表明这就是国服战网。
而他在复制这个网址并且进行登录之后,确实是网易的网址,也就是我们熟悉的停服之后国服发布的暴雪游戏产品运营到期开放退款的说明。这是一件比较奇怪的事情,因为以前都没有出现这样的情况,现在突然提示跳转到国服战网的网址,是不是说明了简体中文客户端已经开始进行更新了呢?