aspxuploadcontrol文件上传技术文档

aspxuploadcontrol文件上传技术文档

ID:17498717

大小:22.40 KB

页数:5页

时间:2018-09-02

aspxuploadcontrol文件上传技术文档_第1页
aspxuploadcontrol文件上传技术文档_第2页
aspxuploadcontrol文件上传技术文档_第3页
aspxuploadcontrol文件上传技术文档_第4页
aspxuploadcontrol文件上传技术文档_第5页
资源描述:

《aspxuploadcontrol文件上传技术文档》由会员上传分享,免费在线阅读,更多相关内容在行业资料-天天文库

1、usingSystem;usingSystem.Collections.Generic;usingSystem.Linq;usingSystem.Web;usingSystem.Web.UI;usingSystem.Web.UI.WebControls;usingDevExpress.Web.ASPxUploadControl;usingSystem.IO;usingMicrosoft.Office.Interop.Word;usingMS.Internal.Xml;usingWord=Microsoft.Office.Interop.Word;publicpartialclassContr

2、ibutor_Author_Upload:System.Web.UI.Page{protectedvoidPage_Load(objectsender,EventArgse){}//protectedvoidbtnUpload_Click(objectsender,EventArgse)//{//stringid=Session["稿?件tID"].ToString();//Session["稿?件tID"].ToString();//stringzzlb=Request.QueryString["zzlb"];//stringny=Request.QueryString["ny"];//s

3、tringbc=Request.QueryString["bc"];//stringgjbt=Request.QueryString["gjbt"];//decimalfilesize=FileUpload_upload.PostedFile.ContentLength/1024;//stringfiletype=FileUpload_upload.PostedFile.ContentType;//if(this.FileUpload_upload.PostedFile.FileName=="")//{//ClientScript.RegisterStartupScript(this.Get

4、Type(),"alert",String.Format("","请?选?择?文?件t!"));//return;//}//if(this.FileUpload_upload.FileName.Substring(this.FileUpload_upload.FileName.Length-4,4).ToLower()!=".doc")//{//ClientScript.RegisterStartupScript(this.GetType(),"alert",String.Format("","文?件t不?能¨¹超?过y2M"));//return;//}//try//{//stringClientPath=FileUpload_upload.PostedFile.FileName;//客¨ª户¡ì端?文?件t路¡¤径

6、?//FileInfoClientPathFile=newFileInfo(ClientPath);//stringServerPath="C:\"+zzlb+"\"+ny+"\"+bc;//Server.MapPath("../Document/稿?件tword/"+id+"_"+ClientPathFile.Name);//服¤t务?端?文?件t路¡¤径?//stringFileName=FileUpload_upload.FileName;////判D断?是º?否¤?存ä?在¨²文?件t夹D,ê?不?存ä?在¨²则¨°创ä¡ä建¡§//DirectoryInfofile=newD

7、irectoryInfo(ServerPath);//if(!file.Exists)//{//file.Create();//}//ServerPath=ServerPath+"\"+id+"_"+gjbt+".doc";////if(System.IO.File.Exists(ServerPath))//判D断?服¤t务?器¡Â上¦?是º?否¤?有®D同ª?名?文?件t存ä?在¨²,ê?若¨?自Á?己o

当前文档最多预览五页,下载文档查看全文

此文档下载收益归作者所有

当前文档最多预览五页,下载文档查看全文
温馨提示:
1. 部分包含数学公式或PPT动画的文件,查看预览时可能会显示错乱或异常,文件下载后无此问题,请放心下载。
2. 本文档由用户上传,版权归属用户,天天文库负责整理代发布。如果您对本文档版权有争议请及时联系客服。
3. 下载前请仔细阅读文档内容,确认文档内容符合您的需求后进行下载,若出现内容与标题不符可向本站投诉处理。
4. 下载文档时可能由于网络波动等原因无法下载或下载错误,付费完成后未能成功下载的用户请联系客服处理。