Posted By: Andrew Davey | Sep 28th, 2007 @ 9:14 AM | 11,338 Views | 5 Comments

The model-view-presenter pattern is a very powerful way to manage user interaction. It seems popular to use it on the server-side when creating HTML, but why not use it client-side instead?
Our computers are powerful enough to run fairly complex JavaScript. Why burden the server with having to render the page contents?

In this screencast I use Script# to compile a C# project into JavaScript. This project contains the Model, View and Presenter logic.
The HTML page then uses the generated JavaScript.

There is a simple REST service on the server that returns data which is called by the Model. No HTML generation occurs on the server.

Download the source code. You must have Script# installed as well.

Media Downloads:
Rating:
0
0
Cyonix
Cyonix
Me
Thanks for the screencast, i'm going to take a closer look into Script#.

Have you had a look at ProMesh.Net?

I realise ProMesh is a server side MVC framework but still thought you might be interested in it...
Andrew:

The last post is from September.... just wanted to know how did you do with this design?
You mentioned you was doing a project, how did it go?
Is there an updated version of the framework?

Thanks

Microsoft Communities