This article is a mirror article of machine translation, please click here to jump to the original article.

View: 14362|Reply: 0

[ASP.NET] Regarding the issue with ajax.beginform not executing the success method in MVC

[Copy link]
Posted on 4/20/2016 4:13:43 PM | | |





I debugged with Firefox, and I didn't follow the onsuccess method at all, at this time, I saw an example on the Internet:

A js quote, I suddenly realized, is it that the js package is not quoted???

Introduce jquery.unobtrusive-ajax.js:
<scrip{filter}t src="~/scrip{filter}ts/jquery.unobtrusive-ajax.js"></scrip{filter}t>



I found that the scrip{filter}t folder doesn't have this file, what should I do??? What should I do????? Download it!!!

Install the following two files using the NUGET Package Manager console
Install-Package jQuery –version 1.10.2
Install-Package Microsoft.jQuery.Unobtrusive.Ajax –version 3.0.0


As a result, the test was successfully popped up!




Previous:[required] invalid workaround in MVC
Next:The MVC view gets the current controller and method

Related Posts

Disclaimer:
All software, programming materials or articles published by Code Farmer Network are only for learning and research purposes; The above content shall not be used for commercial or illegal purposes, otherwise, users shall bear all consequences. The information on this site comes from the Internet, and copyright disputes have nothing to do with this site. You must completely delete the above content from your computer within 24 hours of downloading. If you like the program, please support genuine software, purchase registration, and get better genuine services. If there is any infringement, please contact us by email.

Mail To:help@itsvse.com