Quantcast
Channel: VBForums
Viewing all articles
Browse latest Browse all 16030

How to call backend code from js?

$
0
0
Hi

I’m new to ASP NET MVC (NetCore 3.1), how to call a method from js?

Code:

Public async Task(int) Mytest(int _i)
{

    return _i*5;
}

Just a simple code example, how to call and get its return value from js?


Viewing all articles
Browse latest Browse all 16030

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>