Click here to Skip to main content
15,665,718 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
See more:
How to call a js function from js file in web api controller.Its not mvc WEB
Api.When I click on get function from swagger need to call js funcion and return value

What I have tried:

I am working on web api 5.0 ,After swageer get function how to call js function
Updated 12-Oct-22 12:29pm

1 solution

Your question makes no sense, but, as written, your controller code can NOT call client-side javascript.

Your client-side javascript can, however, call other javascript functions in other javascript files, so long as the client has loaded the appropriate files.
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