Skip to main content Skip to footer

Use "Spread for ASP.NET" in ASP.NET MVC

Last week, I learned some about ASP.NET MVC by watching videos(http://www.asp.net/mvc/). It's awesome~~

It will be easy to create a MVC web applicatoin.

A video named "Creating a Tasklist Application with ASP.NET MVC" is a good start to learn ASP.NET MVC which presented by Stephen Walther.

Same way, it's also a good way to show how to use "Spread for ASP.NET" in ASP.NET MVC. So I add Spread to this sample for "Show tasks", "Add task" and "Complete the task". ("Spread for ASP.NET" has useful client-side behavior, exporting features and so on, so it's easy to create a professional view.)

Firstly, to use a server-side control in ViewPage(the view in ASP.NET MVC), should add a form(runat="server") to the page to contain all server-sdie controls;

After this, any server-side control can works well in new MVC framework, but "PostBack" mechanism will break the MVC structure. So we should route all server-side control's actions to the "Actions" of "Controller".

In this sample, just show a "HelloWorld" style solution for use "Spread for ASP.NET" in new framework.

Snapshot of sample:

=====================

Source code in the attachment

Requirment:

Spread for ASP.NET (http://www.fpoint.com/netproducts/spreadweb/spread.aspx)

VS2008

SQL Server Express

ASP.NET MVC Beta (http://go.microsoft.com/fwlink/?LinkID=129910&clcid=0x409)

MESCIUS inc.

comments powered by Disqus