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

View: 17509|Reply: 2

[ASP.NET] mvc returns javascrip{filter}t script

[Copy link]
Posted on 9/2/2016 9:06:11 AM | | | |
There are two necessary prerequisites for the use of Javascrip{filter}tResult:

1.Ajax

2.jquery.unobtrusive-ajax.js



Controller Code:



View page:



Or:



Look closely at the code in View, the scrip{filter}t reference above adds jquery.unobtrusive-ajax.js, and data-ajax=true below. Both are indispensable, otherwise the returned web page is not a pop-up box, but the web page source code.




CDN link for jquery.unobtrusive-ajax.js:







Previous:CDN links to the world's most comprehensive jquery-related libraries
Next:object references an unsaved transient instance - save the transient instance...
 Landlord| Posted on 10/20/2016 2:43:08 PM |
MVC AJAX. BeginForm() page is submitted asynchronously
http://www.itsvse.com/thread-2932-1-1.html
(Source: Architect)
 Landlord| Posted on 11/3/2016 10:56:08 AM |
With this, the effect is even better
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