MVC Widget with dynamic content
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 actionpublic ActionResult Search(string name)return Json(new List<string>() "john", "bob" , JsonRequestBehavior.AllowGet);
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.
Regards,
Nikola Zagorchev
Telerik