且构网

分享程序员开发的那些事...
且构网 - 分享程序员编程开发的那些事

如何使用多部分/表单数据进行 ASP.NET MVC Ajax 表单发布?

更新时间:2022-05-19 05:35:21

  1. 您可以使用一些额外的上传器(例如 jQuery 多文件上传器)(我更喜欢这种方式,我更喜欢不使用 MS Ajax)
  2. 使用:

  1. You can use some additional uploaders (e.g. jQuery multiple file uploader) (I prefer this way and I prefer not to use MS Ajax)
  2. Use:

AjaxHelper.BeginForm("Post", "Entries", new {id=ViewData.Model.MemberDetermination.DeterminationMemberID}, new AjaxOptions(){/*some options*/}, new {enctype="multipart/form-data"})

但在第二种情况下,我不确定它会起作用.

But in second case I'm not sure that it will work.