c# MVC3 ajax.beginform to upload file not working

后端 未结 5 1261
半阙折子戏
半阙折子戏 2020-12-06 22:53

After clicking the submit button. I am getting null in entity. Do anyone have a solution?

View

    @using (Ajax.BeginForm(\"CreateRo         


        
5条回答
  •  Happy的楠姐
    2020-12-06 23:05

    Unfortunately you can't use Ajax.BeginForm() to upload a file. I got around this by running an onclick() event on the submit event. I found this SO answer very useful: Ajax.BeginForm is not working as expected

提交回复
热议问题