Is it possible to call a Controller ActionResult (get) method from javascript

2 posts, 1 answers
  1. Larry
    Larry avatar
    11 posts
    Member since:
    Jul 2014

    Posted 09 Sep 2014 Link to this post

    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?
  2. Answer
    Sebastian
    Admin
    Sebastian avatar
    9934 posts

    Posted 10 Sep 2014 Link to this post

    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.

     
  3. UI for ASP.NET MVC is VS 2017 Ready
Back to Top