AjaxDropdown
It is declared like this:<% ParentCategory.AjaxDropdown()The url must return a json of KeyContent collection:
.Url(Page.Url().Action("GetCategories", "Data")); %>
<awe:Ocon runat="server" ID="ParentCategory" />
public ActionResult GetCategories()
{
return Json(Db.Categories.Select(o => new KeyContent(o.Id, o.Name)));
}