Project DescriptionJavaScriptModel 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
InstallationInstall JavaScriptModel for ASP.Net MVC4 using
NuGet
Install JavaScriptModel for ASP.Net MVC3 using
NuGet
Install JavaScriptModel for other web frameworks using
NuGet
Getting startedYou can find guides in our
documentation.
TwitterYou can find me on Twitter:
@acuntex