ASP.Net MVC Preview 2 with Delphi 2007

by John 3/12/2008 9:13:00 PM

I have just started exploring preview 2 of the new ASP.Net mvc framework with Delphi 2007.  I have created a project template to help me get started, I'm guessing other people might like it so I have uploaded it to CodeCentral and it can be found here.

If you decide you would like to give it a try your going to need to have installed a couple of things beforehand.

ASP.Net MVC Preview 2 and

the dotnet framework v3.5 

You need to extract the copy of the zip file in codecentral to some location on your harddrive and add ASPNETMVC.bdstemplatelib as a template reference to the IDE. The zip file contains a starter project.

I have more information about project templates here

 

Once installed into the IDE you should be able to select ASP.Net MVC WebApplication from the new items dialog.

This is shown below

 

The project template is based on the existing ASP.Net web application one with a few changes.

The most noticeable difference is that I have created three folders, models, controllers and views.  Its a good idea to head over to the asp.net mvc website to gain an understanding of the conventions followed when using the mvc framework.

Another less obvious change is that the two aspx files in the views subfolders are derived from ViewPage in the System.Web.MVC namespace.

Below is a sample project created with the template.

 

The next two screenshots show the designer and codebehind for the view home.aspx 

Notice the class that the page is derived from

 

The final changes are the addition of a Global.asax to the project and a few updates to web.config

Update:

Below is an example of MVC Contrib using the Brail View Engine

 

 

Currently rated 3.0 by 1 people

  • Currently 3/5 Stars.
  • 1
  • 2
  • 3
  • 4
  • 5

Tags:

ASP.Net 3.5 | aspnetmvc | Brail | MVCContrib | Delphi

Powered by BlogEngine.NET 1.3.0.0
Theme by Mads Kristensen

About the author

Name of author John Moshakis
I'm a software developer living in Toronto..

E-mail me Send mail

Calendar

<<  September 2017  >>
MoTuWeThFrSaSu
28293031123
45678910
11121314151617
18192021222324
2526272829301
2345678

View posts in large calendar

Pages

    Recent posts

    Recent comments

    Authors

    Tags

    Don't show

      Disclaimer

      The opinions expressed herein are my own personal opinions and do not represent my employer's view in anyway.

      © Copyright 2017

      Sign in