This is a migrated thread and some comments may be shown as answers.
Is it possible to call a Controller ActionResult (get) method from javascript
1 Answer 106 Views
This is a migrated thread and some comments may be shown as answers.
Larry
Top achievements
Rank 1
Larry asked on 09 Sep 2014, 08:52 PM
I have been programming for many years now, but I am new to the web development world.   Is it possible to call a Controller ActionResult (get) method from javascript?    I have a grid with a dropdownlist.  I have the grid setup to use the change event.   I have javascript for the onChange event.   In this javascript I would like to make a call to a controller to retrieve information based upon the selection that was just made with the dropdownlist.   Is this possible?

1 Answer, 1 is accepted

Sort by
0
Accepted
Sebastian
Telerik team
answered on 10 Sep 2014, 09:15 AM
Hello Larry,

I think that the information from the following online resources will help you accomplish your task:
http://stackoverflow.com/questions/8952953/calling-asp-net-mvc-action-methods-from-javascript
http://www.dotnet-programming.com/post/2012/04/02/Calling-MVC-Action-from-Javascript.aspx

The same common method should be applicable to be used with our grid widget and its change event.

I hope these directions are helpful.

Regards,
Sebastian
Telerik
 

Check out the Telerik Platform - the only platform that combines a rich set of UI tools with powerful cloud services to develop web, hybrid and native mobile apps.

 
Asked by
Larry
Top achievements
Rank 1
Answers by
Sebastian
Telerik team
Share this question
or