用c#将附件拖放到asp.net的文件上传控件中,例如gmail [英] drag and drop attachments to file upload control for asp.net with c# like in gmail

查看:69
本文介绍了用c#将附件拖放到asp.net的文件上传控件中,例如gmail的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述


我想要的代码或示例,
将附件拖放到使用c#的c#进行asp.net的文件上传控制,如gmail ....


i want code or example for,
drag and drop attachments to file upload control for asp.net with c# like in gmail....

推荐答案

使用HTML5可以在http://www.thebuzzmedia.com/html5-drag-and-drop-and-file- api-tutorial/ [ ^ ]
Useful reference is available using HTML5 at http://www.thebuzzmedia.com/html5-drag-and-drop-and-file-api-tutorial/[^]


尝试使用此操作会上传文件..

FileUpload1.PostedFile.SaveAs(MapPath(〜/UpLoads/" + FileUpload1.FileName));


FileUpload1 =您的文件上传控件ID

〜/UpLoads/" ==您在项目中的当前路径

发表者,
T.D.V. Anil Kumar Reddy.
try with this it ill upload your file..

FileUpload1.PostedFile.SaveAs(MapPath("~/UpLoads/" + FileUpload1.FileName));


FileUpload1=your fileupload control id

"~/UpLoads/"==your current path in project

Posted By ,
T.D.V.Anil Kumar Reddy.


这篇关于用c#将附件拖放到asp.net的文件上传控件中,例如gmail的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆