Submit a Form using AJAX in ASP.Net Core MVC
问题 I am working with ASP.Net Core 2.1, and trying to upload a file while returning it's url, without refreshing the page. I am trying to write the JavaScript in site.js as the _RenderPartial("scripts") renders all scripts at the end of the page and hence directly using script tag in the razor view is not working. Secondly, adding it to site.js gives me an opportunity to call the script across the site views. My Controller action looks like : [HttpPost] [DisableRequestSizeLimit] public async Task