Refresh in browser when uploading mvc file c #

前端 未结 1 2001
再見小時候
再見小時候 2020-12-11 09:47

I have an AJAX file upload by call to MVC C# driver, but the browser refreshes and reloads the page.

But if I comment the line that saves the file in the driver does

相关标签:
1条回答
  • 2020-12-11 09:51

    I believe I found the solution. The cause is that Visual Studio's "Enable Reload on Save" property is True.

    Go to Tools - Options - Web - Browser Reload on Save - Enable Reload on Save and make it false.

    Im working with VS2015 and this worked for me, hope it works for you too.

    Source

    0 讨论(0)
提交回复
热议问题