Solved

call controll from Javascript, my action in controller return actionResult

Posted on 2010-11-11
2
879 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
Comment Utility
document.getElementById('Home').Index();
0
 

Author Closing Comment

by:kravindra
Comment Utility
good
0

Featured Post

How your wiki can always stay up-to-date

Quip doubles as a “living” wiki and a project management tool that evolves with your organization. As you finish projects in Quip, the work remains, easily accessible to all team members, new and old.
- Increase transparency
- Onboard new hires faster
- Access from mobile/offline

Join & Write a Comment

A quick way to get a menu to work on our website, is using the Menu control and assign it to a web.sitemap using SiteMapDataSource. Example of web.sitemap file: (CODE) Sample code to add to the page menu: (CODE) Running the application, we wi…
Problem Hi all,    While many today have fast Internet connection, there are many still who do not, or are connecting through devices with a slower connect, so light web pages and fast load times are still popular.    If your ASP.NET page …
Here's a very brief overview of the methods PRTG Network Monitor (https://www.paessler.com/prtg) offers for monitoring bandwidth, to help you decide which methods you´d like to investigate in more detail.  The methods are covered in more detail in o…
This tutorial demonstrates a quick way of adding group price to multiple Magento products.

743 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

15 Experts available now in Live!

Get 1:1 Help Now