artyprog / apprun-ssr-aspnet

This project demonstrates generating virtual DOM on server side using ASP.NET MVC filter.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Make ASP.NET MVC App into SPA

This project demonstrates the virtual DOM filter for ASP.NET MVC applications.

The virtual DOM filter does the content negotiation to output HTML or the Virtual DOM. The client-side AppRun application alters the menu links and switches the application into the SPA mode.

[VirtualDom]
public ActionResult About()
{
    ViewBag.Message = "Your application description page.";
    return View();
}

Initial request returns full HTML page. screenshot

AJAX request returns the Virtual DOM as JSON. screenshot

Have fun and send pull requests.

License

MIT

Copyright (c) 2017 Yiyi Sun

About

This project demonstrates generating virtual DOM on server side using ASP.NET MVC filter.

License:MIT License


Languages

Language:C# 55.4%Language:JavaScript 42.1%Language:CSS 2.1%Language:ASP 0.4%