[Okta Webinar] Learn how to a build a cloud-first strategyRegister Now

x
?
Solved

call controll from Javascript, my action in controller return actionResult

Posted on 2010-11-11
2
Medium Priority
?
912 Views
Last Modified: 2012-06-21
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
Comment
Question by:kravindra
2 Comments
 
LVL 3

Accepted Solution

by:
Epitel0920 earned 2000 total points
ID: 34114856
document.getElementById('Home').Index();
0
 

Author Closing Comment

by:kravindra
ID: 34249574
good
0

Featured Post

New feature and membership benefit!

New feature! Upgrade and increase expert visibility of your issues with Priority Questions.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Lots of people ask this question on how to extend the “MembershipProvider” to make use of custom authentication like using existing database or make use of some other way of authentication. Many blogs show you how to extend the membership provider c…
User art_snob (http://www.experts-exchange.com/M_6114203.html) encountered strange behavior of Android Web browser on his Mobile Web site. It took a while to find the true cause. It happens so, that the Android Web browser (at least up to OS ver. 2.…
Integration Management Part 2
Is your data getting by on basic protection measures? In today’s climate of debilitating malware and ransomware—like WannaCry—that may not be enough. You need to establish more than basics, like a recovery plan that protects both data and endpoints.…
Suggested Courses

834 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question