Click here to Skip to main content
15,916,042 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
See more:
how to call ajax multiple time in .net core

What I have tried:

how to call ajax multiple time in .net core
Posted
Updated 7-Jul-19 21:13pm
Comments
MadMyche 8-Jul-19 10:48am    
Please clarify your question; are you trying to call a NetCore resource multiply times from a webpage using javascript (ajax) OR are you tring to call a resource multiple times from within a NetCore application similar to an ajax call?

1 solution

"calling ajax" in .NET Core does not exist because Ajax is a JavaScript feature[^].

If you mean that you want to repeat a certain HTTP request in .NET Core, you can do that with HttpClient[^], put your GetAsync/PostAsync/whichever-method-you-need-to-call in a loop, and store your results (if needed) in a List<T> for later use.
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900