More in this section
Forums / Developing with Sitefinity / MVC Widget with dynamic content

MVC Widget with dynamic content

The forums are in read-only mode. In case that you want to directly contact the Progress Sitefinity team use the support center. In our Google Plus group you can find more than one thousand Sitefinity developers discussing different topics. For the Stack Overflow threads don’t forget to use the “Sitefinity” tag.
2 posts, 0 answered
  1. Damein
    Damein avatar
    9 posts
    10 Apr 2012
    31 Jul 2014
    Link to this post

    I have a mvc widget and want to create a dynamic input box that suggests names to you.

    I have a controller that has two methods Index (returns the actual widget markup) and Search (return a list of names in Json format).

    I call the search action using jquery $.ajax and append my items to a <ul>

    The problem i'm having as I cannot get to the search action the ajax call always returns a 404. What should I be setting the url parameter to?

    Here are my controller action

    public ActionResult Search(string name){
    return Json(new List<string>(){ "john", "bob" }, JsonRequestBehavior.AllowGet);


  2. Nikola Zagorchev
    Nikola Zagorchev avatar
    424 posts
    19 Apr 2017
    05 Aug 2014
    Link to this post
    Hi Damein,

    We have answered you in the other forum thread opened by you. Please, to keep the communication straight, answer in the other thread available on the following link.

    Nikola Zagorchev
    Do you want to have your say in the Sitefinity development roadmap? Do you want to know when a feature you requested is added or when a bug fixed? Explore the Telerik Sitefinity CMS Ideas&Feedback Portal and vote to affect the priority of the items
2 posts, 0 answered