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
2010-02-21 08:53:45
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
2010-02-21 09:10:02
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
2010-02-21 13:34:31
Good solution, Thx
iiduce
2010-02-23 04:11:40