tags:

views:

59

answers:

3

How to realize adding a new page in the asp.net mvc website without coding.

A: 

Create an html page (a file named with .htm ending) in a web editor (e.g. Microsoft FrontPage).

Copy that html file to an Asp.Net MVC website.

Voila: you have added a page to your Asp.Net MVC website without coding.

Ope
A: 

so you are looking for a CMS, build with ASP.NET MVC? then look at http://www.codeplex.com/oxite its a great example (but not a finished CMS!)

marc.d
A: 

I have used to following controller and route mapping so that HTML developers can add new views before the real controller is built.

routes.MapRoute(
    "Simple",
    "{directory}/{file}/{id}",
    new { controller = "Simple", action = "Index", directory="home", file="index", id = "" }
);

public class SimpleController: Controller
{
    public ActionResult Index( string directory, string file, string id )
    {
        return View( string.Format("~/views/{0}/{1}.aspx", directory, file ));
    }
}
Lachlan Roche
Good solution, Thx
iiduce