• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 917
  • Last Modified:

call controll from Javascript, my action in controller return actionResult

HI,

I have Controller "Home" with ActionName "Index", this action return ActionReult.

I have button "open".

on click event of button "open", i want to pass an id to action "Index".

So i need to call first javascript and then call contoller to pass this ID.

my action should return actionResult.

How to call controller action using javascript.
0
kravindra
Asked:
kravindra
1 Solution
 
Epitel0920Commented:
document.getElementById('Home').Index();
0
 
kravindraAuthor Commented:
good
0

Featured Post

The new generation of project management tools

With monday.com’s project management tool, you can see what everyone on your team is working in a single glance. Its intuitive dashboards are customizable, so you can create systems that work for you.

Tackle projects and never again get stuck behind a technical roadblock.
Join Now