Solved

call controll from Javascript, my action in controller return actionResult

Posted on 2010-11-11
2
880 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 500 total points
ID: 34114856
document.getElementById('Home').Index();
0
 

Author Closing Comment

by:kravindra
ID: 34249574
good
0

Featured Post

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

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

One of the pain points with developing AJAX, JavaScript, JQuery, and other client-side behaviors is that JavaScript doesn’t allow for cross domain request for pulling content. For example, JavaScript code on www.johnchapman.name could not pull conte…
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.…
This Micro Tutorial will teach you how to censor certain areas of your screen. The example in this video will show a little boy's face being blurred. This will be demonstrated using Adobe Premiere Pro CS6.
This Micro Tutorial will give you a basic overview how to record your screen with Microsoft Expression Encoder. This program is still free and open for the public to download. This will be demonstrated using Microsoft Expression Encoder 4.

895 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

Need Help in Real-Time?

Connect with top rated Experts

14 Experts available now in Live!

Get 1:1 Help Now