Project Description
JavaScriptModel is a .NET library to transfer data to JavaScript or execute js-functions from .NET server-side code (C#, VB.NET) as embedded json on the website

Features
  • Transfers data from code behind to javascript as embedded json
  • Executes javascript functions from code behind
  • Cross-browser compatible
  • ASP.Net MVC3-support
  • ASP.Net MVC4-support
  • Customizable data store
  • Extendable for other web application frameworks
  • Uses the high-performance JSON framework Json.NET to serialize classes
  • Uses json2 to deserialize the embedded json
  • Supports .NET 4.0/4.5

Benefits
  • No ajax requests needed for data exchange
    • Faster site loading (no asynchronous calls to wait for)
    • Less server load and traffic
    • No context loss
  • No inline javascript required for data exchange or function calls
    • Faster site loading (no blocking javascripts)
    • Maintainability due to clean view code without javascript
  • Easy to integrate
  • Easy to use
  • Less traffic in combination with a javascript template system

JSM_BigPicture.png

Installation
Install JavaScriptModel for ASP.Net MVC4 using NuGet
NuGet_JSM.MVC4.png

Install JavaScriptModel for ASP.Net MVC3 using NuGet
NuGet_JSM.MVC3.png

Install JavaScriptModel for other web frameworks using NuGet
NuGet_JSM.png

Getting started
You can find guides in our documentation.

Twitter
You can find me on Twitter: @acuntex

Last edited Jul 4 at 8:49 AM by acuntex, version 21