Click here to Skip to main content
13,092,310 members (62,268 online)
Click here to Skip to main content
Articles » Web Development » ASP.NET » Samples » Downloads

Stats

148.7K views
4K downloads
180 bookmarked
Posted 28 Apr 2011

jQuery Templates/View Engines in ASP.NET MVC

, 25 Apr 2012
This article explains how client-side view engines can be used in ASP.NET MVC.
LoadJSON
bin
LoadJSON.dll
Content
images
details_close.png
details_open.png
logo17.jpg
logo18.jpg
logo19.jpg
logo20.jpg
logo21.jpg
stripe.png
title.gif
Controllers
Global.asax
LoadJSON.csproj.user
Models
obj
Debug
TempPE
Properties
Scripts
using System.Linq;
using System.Web.Mvc;
using LoadJSON.Models;

namespace LoadJSON.Controllers
{
    public class CompanyController : Controller
    {
        public ActionResult List()
        {
            return Json(DataRepository.GetCompanies(), JsonRequestBehavior.AllowGet);
        }

        public ActionResult Data(int? ID)
        {
            return Json(DataRepository.GetCompanies().First(c => c.ID == ID), JsonRequestBehavior.AllowGet);
        }
    }
}

By viewing downloads associated with this article you agree to the Terms of Service and the article's licence.

If a file you wish to view isn't highlighted, and is a text file (not binary), please let us know and we'll add colourisation support for it.

License

This article, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)

Share

About the Author

Jovan Popovic
Program Manager Microsoft
Serbia Serbia
Graduated from Faculty of Electrical Engineering, Department of Computer Techniques and Informatics, University of Belgrade, Serbia.
Currently working in Microsoft as Program Manager on SQL Server product.
Member of JQuery community - created few popular plugins (four popular JQuery DataTables add-ins and loadJSON template engine).
Interests: Web and databases, Software engineering process(estimation and standardization), mobile and business intelligence platforms.

You may also be interested in...

Pro
Permalink | Advertise | Privacy | Terms of Use | Mobile
Web04 | 2.8.170813.1 | Last Updated 26 Apr 2012
Article Copyright 2011 by Jovan Popovic
Everything else Copyright © CodeProject, 1999-2017
Layout: fixed | fluid