简体   繁体   English

如何使用asp.net和jquery上传文件

[英]How to upload the file using asp.net and jquery

I want to retrieve the file data in jquery and upload this to aspx page. 我想在jquery中检索文件数据并将其上传到aspx页面。 I have read about the html5 way of doing this but want to know how to do this old browser(not supporting html5). 我已经阅读了关于html5这样做的方法,但想知道如何做这个旧的浏览器(不支持html5)。

Do you just want to read through javascript or do you want to upload? 你只想阅读javascript还是想上传? Have a look at : https://stackoverflow.com/questions/5397991/html-4-equivalent-of-html-5s-filereader for accessing file data. 请查看: https//stackoverflow.com/questions/5397991/html-4-equivalent-of-html-5s-filereader,用于访问文件数据。

If it is just about posting file to server using ajax, then you can use jquery plugin (easy way) or write ajax request through javascript to post details. 如果它只是使用ajax将文件发布到服务器,那么你可以使用jquery插件(简单方法)或通过javascript编写ajax请求来发布详细信息。

也许Uploadify是你的朋友...阅读更多信息http://markp3rry.wordpress.com/?s=uploadify&submit=Search

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM