Solved

call controll from Javascript, my action in controller return actionResult

Posted on 2010-11-11
2
881 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

Microsoft Certification Exam 74-409

Veeam® is happy to provide the Microsoft community with a study guide prepared by MVP and MCT, Orin Thomas. This guide will take you through each of the exam objectives, helping you to prepare for and pass the examination.

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…
In an ASP.NET application, I faced some technical problems. In this article, I list them out and show the solutions that I found.  I hope it will be useful. Problem: After closing a pop-up window, the parent page should be refreshed automaticall…
This tutorial gives a high-level tour of the interface of Marketo (a marketing automation tool to help businesses track and engage prospective customers and drive them to purchase). You will see the main areas including Marketing Activities, Design …
Nobody understands Phishing better than an anti-spam company. That’s why we are providing Phishing Awareness Training to our customers. According to a report by Verizon, only 3% of targeted users report malicious emails to management. With compan…

770 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