Client-side MVP with Script#

Pointers to some interesting works built on top of Script# - first a client-side MVP sample, and second, a project called Ext#.

Andrew Davey recently posted doing client-centric Ajax development using the MVP pattern using Script#. He not only shows programming against the DOM, and splitting code into model, view and presenter sections, but also shows using the Script# networking stack on the client, and the REST RPC API framework on the server. Check out the Channel 9 screencast for the demo. Andrew also has ideas for implementing tier-splitting to simplify writing the combination of client-side code and server-side code together. Interesting...

On a related note, I got an email pointing me at the Ext# project as well, which is a Script# wrapper for programming against the ExtJS framework. Maybe the folks working on the Ajax control toolkit project would also be interested in evaluating this type of approach. :-)

Its super interesting to see these efforts, as well the community publishing their work and sharing their thoughts. I really need to put together a mini showcase on the Script# project site... is there something you'd like to share?

Update (10/18): Andrew added a second screencast, one that demonstrates a mobile model so to speak, where the same model moves from server to client allowing both the client and server tiers to work against data, and think less about web requests.

Posted on Tuesday, 10/16/2007 @ 6:37 PM | #Script#


Comments

16 comments have been posted.

Michael Sync

Posted on 10/17/2007 @ 2:34 AM
Script# is very interesting.. I'm gonna test it out...
Is Script# open source?

Andrew Davey

Posted on 10/17/2007 @ 3:44 AM
Thanks for the link :)
I'll try to get another screencast done today. This time showing how a Model can cross from client to server and back again.

p.s.
Please open source Script#. Get it on CodePlex so I can add features I want, like partial class support, "param" keyword, etc!

Teflon

Posted on 10/17/2007 @ 6:40 AM
Nikhil, thanks for the link to Ext#.

p.s.
I second Andrew's motion to release the source for Script#.

Andrew Davey

Posted on 10/17/2007 @ 2:02 PM
New screencast here:
channel9.msdn.com/Showpost.aspx?postid=348722

Shows having a mobile model that moves between the client and server.

shashikant

Posted on 10/18/2007 @ 12:13 AM
Hi
i wanted to call javascript validation function from code behind file that is comming but a issue is there if i have four field in the form and i wanted to make all are compulsary but when i click the button like this command

button1.attributes.add("onclick","return validation()");

without checking the form value records has come in the database.

pls help me and send code for it.

waiting ur reply
bye
shashikant

Eric Hauser

Posted on 10/19/2007 @ 7:10 AM
Nikhil,

I have been using Ext# for awhile and enjoy the model of doing Ext with javascript. It is definately hard to convince people to use it though when Script# is not open source or there is no commercial support. I think this is a big barrier to adoption. Please consider releasing it as open source.

Thanks.

Stefan Dobrev

Posted on 10/21/2007 @ 8:13 AM
Hi Nikhil,

You can check my post about building 3D cube in Silverlight 1.0 using Script#.
ligaz.blogspot.com/2007/10/building-3d-cube-in-silverlight-10.html

Hope you will enjoy it.

Cheers.

Andrew Davey

Posted on 10/26/2007 @ 6:57 PM
Thanks for partial classes in 0.4.4!
That should ease some of the code generation I'm working on.

P.S.
Open source ;)

david thiessen

Posted on 11/1/2007 @ 8:10 PM
looks very cool, will there ever be a VB-Script version?

Nikhil Kothari

Posted on 11/5/2007 @ 5:13 PM
Folks, I will get back and try responding to the open source requests - unfortunately its not a straightforward decision, and its not because of some desire not to share the code. Will think through a response and post a comment (currently out of town at a customer visit... incidently talking on Ajax and script#).

David - no there is unlikely to be a vbscript version - where are you wishing to use vbscript? And why would javascript not work?

Ohad

Posted on 11/6/2007 @ 12:20 PM
Hi Nikhil!

The Script# is really great project. Since you are writing about projects that connect Script# and other JS tools (like ExtJS), I want to ask about integration between Script# and AjaxPro (Michael Schwarz), which is (I think) one of the more common Ajax frameworks for .NET?

There are a lot of people that prefers working with AjaxPro on MS AJAX.

Nikhil Kothari

Posted on 11/6/2007 @ 8:30 PM
Ohad - feel free to point Michael at Script# if you'd like to see some integration on that end :-)

Steve

Posted on 11/9/2007 @ 7:48 PM
Can I ask - I'm using Monorail and looking at MS MVC

I think Script# could be a great start for MS MVC.

Do you have plans to evaluate this?

Nikhil Kothari

Posted on 11/10/2007 @ 9:42 AM
Steve - script# produces regular javascript files that can really be consumed in quite literally any environment - so whether its MVC, regular Web Forms, packaged in server controls, referenced within a PHP app, or something else... you should be able to use the generated script files.

Did you have something in particular you were thinking about?

Miguel Madero

Posted on 1/26/2008 @ 3:00 PM
Nikhil

What did you think about releasing the source.
It would be really cool to have Script# hosted in codeplex and accept contributions from the community, ie the work from Ext# and Andrew on Client Side MVP.
Volta and Silverlight 2.0 are going to allow us either JS generation or to run .NET code in the client, but meanwhile Script# is the only way we have to code our way in C# and still get all the benefits of having code running in the client.

The only disadvantage for adopters is that the project is not backed up by a company or we dont have the source code.
I know you are behind it and have been doing it really well, many commercial products dont even have a VS 2008 version yet and Script# does.

At the company we have many good experiences with different products, either commercial or open source. With Commercial products we need to know who is behind. Microsoft, Resco Controls and others have give us great support and continuity in the projects. With Open Source for example, we use the Mobile Client Software Factory from Patterns and Practices and even tough it was from a group at Microsoft they basically stopped supporting it for whatever reason they might have, but we can support it ourselves, fix bugs, etc because we at least have the source.

It's kinda scary to start a project now using Script# not knowing what will be of the project, what continuity and support could we have specially when Silverlight or Volta are released, but having the source we would feel safer to use it.

Let us know what do you think.

Thanks.

David Thiessen

Posted on 3/9/2008 @ 12:17 AM
I meant a VB.NET version, sorry
Post your comment and continue the discussion.
 
 
 

 

 
Refresh this form if the spam-protection code is not readable, or has expired. (Your input will be preserved)