通过Ajax.BeginForm在ASP.NET MVC3上传文件 [英] Upload files by Ajax.BeginForm in ASP.NET MVC3

查看:271
本文介绍了通过Ajax.BeginForm在ASP.NET MVC3上传文件的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我怎么会通过这些手段上传文件或图像到服务器:

How could I upload files or images to the server by these means:

我想用 Ajax.BeginForm()用于处理用户配置文件。

I would like using Ajax.BeginForm() for handling users profiles.

这将使机制处理的Json 从服务器和更新消息的容器信息的反应。

It would give the mechanism for processing Json responses from server and update message containers information.

推荐答案

您可以不使用Ajax.BeginForm上传文件

You can't upload a file using Ajax.BeginForm

您可以使用jQuery插件或Uploadify

You can use JQuery Plugins or Uploadify

http://blueimp.github.com/jQuery-File-Upload/

http://www.uploadify.com/

这篇关于通过Ajax.BeginForm在ASP.NET MVC3上传文件的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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