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

Web Programming guide – Inserting data using SQL data source controller

In developing web base system, retrieving and inserting data is a basic thing. As in ASP.NET, it makes development easy. As we're going to explore one of the control-SqlDataSource control which I have tested it out with a simple web application form name 'NewContract.aspx' in SCM test n error 2 project. Let's  start from the …

Continue reading Web Programming guide – Inserting data using SQL data source controller