前台部分:
名称:
JS脚本事件: 后台cs代码 for(int Index = 0; Index文件名: '{0}'
文件大小: {1} bytes
文件类型: '{2}'
", //PostedFile.FileName, PostedFile.ContentLength, PostedFile.ContentType)); if(PostedFile.FileName=="") { Response.Write(""); return; } else { string RelativePath = Path.Combine("Received Files",Path.GetFileName(PostedFile.FileName)); string AbsolutePath = this.Page.MapPath(this.Page.ResolveUrl(RelativePath)); PostedFile.SaveAs(AbsolutePath); string[] aa=Request["FileName"].Split(",".ToCharArray()); data.BARGAIN_SERIALNUMBER = id; data.BARGAIN_ANNEX_NAME = aa[Index]; data.BARGAIN_ANNEX_PATH = PostedFile.FileName; DataLink.InsertBARGAIN_ANNEX(data); } } } 进度条页面 <%@ Page language="c#" Codebehind="Progress.aspx.cs" AutoEventWireup="false" Inherits="Web.Pages.ProgressBar" %>
<%=percents %>
名称:
JS脚本事件: 后台cs代码 for(int Index = 0; Index
文件大小: {1} bytes
文件类型: '{2}'
", //PostedFile.FileName, PostedFile.ContentLength, PostedFile.ContentType)); if(PostedFile.FileName=="") { Response.Write(""); return; } else { string RelativePath = Path.Combine("Received Files",Path.GetFileName(PostedFile.FileName)); string AbsolutePath = this.Page.MapPath(this.Page.ResolveUrl(RelativePath)); PostedFile.SaveAs(AbsolutePath); string[] aa=Request["FileName"].Split(",".ToCharArray()); data.BARGAIN_SERIALNUMBER = id; data.BARGAIN_ANNEX_NAME = aa[Index]; data.BARGAIN_ANNEX_PATH = PostedFile.FileName; DataLink.InsertBARGAIN_ANNEX(data); } } } 进度条页面 <%@ Page language="c#" Codebehind="Progress.aspx.cs" AutoEventWireup="false" Inherits="Web.Pages.ProgressBar" %>