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.
kravindraAsked:
Who is Participating?

Improve company productivity with a Business Account.Sign Up

x
 
Epitel0920Connect With a Mentor Commented:
document.getElementById('Home').Index();
0
 
kravindraAuthor Commented:
good
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.