Making a Simple Ajax call to controller in asp.net mvc to load data into dropdownlist

Controller: Public Function Get_Plant() As ActionResult Dim plantrole As New PlantRequestParam Dim rinfo = New Common.ResultInfo rinfo = iPlant.GetAllActiveList(plantrole) Return Json(rinfo) End Function View: var AjaxUrl = "../Home/Get_Plant"; $.ajax({ type: 'POST', url: AjaxUrl, contentType: 'application/json; charset=utf-8', success: function (data) { if (data.Status == true) { var taglist = data.Data; $.each(taglist, function (index, value) { var …

Continue reading Making a Simple Ajax call to controller in asp.net mvc to load data into dropdownlist

Some JQuery tricks that usually needed to use it to retrieve, update and load items in drop down box

Set 1 of the values in drop down list as selected option in the UI: Retrieve selected Id or value to be process: To get list of objects to be load in the drop down list dynamically: