Hi all,
My application (ASP.NET MCV) refrences a Webservice to GET data & display using DataTables jQuery (https://datatables.net/).
- Created ajax function to call Controller/ Action.
- Consumed Webservice data to show.
- [HttpPost]
- public ActionResult GetDetailsFromService()
- {
- ProductDetails.GetDetailsService service = new ProductDetails.GetDetailsService();
- JavaScriptSerializer json = new JavaScriptSerializer();
- return Json(json.Serialize(service.GetProductData()), JsonRequestBehavior.AllowGet);
- }
- JSON data shown in alert box from webservice.
- Can't bind data to jQuery DataTable
Please help me out, to figure whats the problem.
L APosted Apr 9, 2017, 12:16 AM
Ramesh PalanivelPosted Mar 31, 2017, 4:50 PM