data showing in json format in browser , but i want to send to view
[HttpGet]
public JsonResult GetProductID(int Eid)
{
_productModuleAPI = new ProductModuleAPI();
var productModules = _productModuleAPI.GetAll();
lvm2.ProductsModulesViewModel = productModules.ToList();
return Json(lvm2, JsonRequestBehavior.AllowGet);
}
Vineet KumarPosted Jan 4, 2017, 6:36 AM
MayankPosted Dec 14, 2016, 6:41 AM
var Eid = $(el).attr("id");
$.ajax({
cache: false,
type: "GET",
contentType: "application/json; charset=utf-8",
dataType: 'json',
url: "/Login/GetProductID",
data: { Eid: Eid },
success: function (data) {
debugger;
alert(data);
},
error: function (xhr, ajaxOptions, thrownError) {
alert("Ajax Failed!!!");
}
}); // end ajax call
}
Bikesh SrivastavaPosted Dec 12, 2016, 7:09 AM
Harshal PatilPosted Dec 8, 2016, 5:06 AM
type: 'POST',
url: '@Url.Action("GetProdList")',
dataType: 'json',
data: { statecode: Selected },
success: function (Ros) {
$("#dropdownID").append('');
$.each(Ros, function (i, Ro) {
$("#dropdownID").append('');
});
},
error: function (ex) {
alert('Failed to retrieve Ro code.' + ex);
}
});
{
{
Pcodlst .Add(new SelectListItem { Text =prod.name, Value = prod.id });
};
suman goudPosted Dec 7, 2016, 7:02 AM
Prakash KumarPosted Dec 7, 2016, 6:50 AM
Prakash KumarPosted Dec 7, 2016, 6:45 AM
class
="nav navbar-default">Manas MohapatraPosted Dec 7, 2016, 6:39 AM
Ravi PatelPosted Dec 7, 2016, 6:33 AM
suman goudPosted Dec 7, 2016, 6:33 AM
Salman BegPosted Dec 7, 2016, 6:19 AM
Prakash KumarPosted Dec 7, 2016, 6:16 AM
suman goudPosted Dec 7, 2016, 6:12 AM
Prakash KumarPosted Dec 7, 2016, 5:59 AM
suman goudPosted Dec 7, 2016, 5:51 AM
Prakash KumarPosted Dec 7, 2016, 5:27 AM
Salman BegPosted Dec 7, 2016, 5:09 AM