When I decided to write down a little class to manage a menu, I created a simple object that reads the menu data in xml, and transform it into a series of MenuItem object. The first thing I wanted to do is writing some test to verify that the logic is ok, but since my [...]

kick it on DotNetKicks.com

Continue reading about Decouple controllers and other objects from context in asp.net mvc

jQuery has really a lot of interesting plugins, but the one I like most is a template engine called jtemplates. Basically it consist of a jQuery extension that is capable of rendering html with javascript on client machine. You really have a lot of flexibility on how to specify a template, basically you can embed [...]

kick it on DotNetKicks.com

Continue reading about Asp.net Mvc plus jQuery client template engine .. have fun with them

alkampfer on April 14th, 2009

I have a little site with mixed webform and mvc pages, and I need a simple way to create a main menu. Since asp.net mvc have the concept of controllers and action I like to express my menu with a simple xml file like this. <?xml version=”1.0″ encoding=”utf-8″ ?> <menu> <submenu text=”administration”> <url url=”/Login.aspx” text=”Login [...]

kick it on DotNetKicks.com

Continue reading about Build a menu for asp.net mvc site

I’m moving my first steps on asp.net mvc, and in my test project I added a route after the default one in this way. RouteTable.Routes.MapRoute( “Default”, “{controller}/{action}/{id}”, new { controller = “Home”, action = “Index”, id = “” } ); RouteTable.Routes.MapRoute( “PagedController”, “{controller}/{action}/{pageid}/{id}”, new { controller = “Home”, action = “Index”, pageid = 0, id [...]

kick it on DotNetKicks.com

Continue reading about Choosing the ritgh route when you generate link in asp.net mvc.

alkampfer on April 5th, 2009

First of all thanks to Andrea Balducci that gave me this solution. I have a asp.net application where I enabled Asp.Net mvc following a link in the web. Everything works well until I try to use Strongly Typed View. When I try to have a page that inherits from ViewPage<T> where T is one of [...]

kick it on DotNetKicks.com

Continue reading about Could not load type ‘System.Web.Mvc.ViewPage<..<>’