How to add a view for the json result in asp.net mvc?
Posted
by Pandiya Chendur
on Stack Overflow
See other posts from Stack Overflow
or by Pandiya Chendur
Published on 2010-04-30T12:12:35Z
Indexed on
2010/04/30
12:17 UTC
Read the original article
Hit count: 198
I returned json result from a controller but how can i add a view that uses this json result..
public class MaterialsController : Controller
{
ConstructionRepository consRepository = new ConstructionRepository();
public JsonResult Index()
{
var materials = consRepository.FindAllMaterials().AsQueryable();
return Json(materials);
}
}
How to add a view to this? Any suggestion...
© Stack Overflow or respective owner