zblock

Stories submitted by zblock

An Unobtrusive IronPython ViewEngine for ASP.NET MVC(www.codevoyeur.com)

submitted by zblockzblock(90) 1 year, 9 months ago

ASP.NET MVC supports a variety of view engines. The default WebForms view engine mixes C# or VB.NET code blocks with standard HTML markup. In an effort to be more readable than WebForms, other view engines such as NVelocity, Brail and Razor have simplified syntaxes that are less intrusive to the HTML document. This article will introduce an experimental, but unobtrusive view engine that uses IronPython and eliminates virtually all templating code from the markup. read more...

add a comment |category: |Views: 24

tags: another

A Simple IronPython Route Mapper for ASP.NET MVC(www.codevoyeur.com)

submitted by zblockzblock(90) 1 year, 10 months ago

Though compiled-code as configuration has become a popular alternative to XML configuration, it does come at the price of build and deployment flexibility. This article demonstrates how to avoid a cluttered Global.asax and XML config by moving ASP.NET MVC route mappings out of the standard RegisterRoutes method and into a Python file. read more...

add a comment |category: |Views: 20

tags: another

On Running NerdDinner on MongoDB with NoRM - Part I(www.dllhell.net)

submitted by zblockzblock(90) 1 year, 11 months ago

As part of a presentation I’ll be giving at the Hartford Code Camp this Saturday, I’ve started to work through the task of converting NerdDinner to run on MongoDB using the NoRM driver. This is the first in a short series of posts on the process. read more...

add a comment |category: |Views: 53

tags: another

A NoRM-MongoDB Repository Base Class(www.codevoyeur.com)

submitted by zblockzblock(90) 1 year, 11 months ago

When working with data access frameworks that map .NET types to underlying persistence stores, generics can be used to provide very simple but powerful infrastructure. NHibernate, for example, makes it easy to create a base class that provides full CRUD support for any mapped type. By inheriting from this base class, a DAO or repository is able to query and modify its data source with no additional code. This article will introduce a similar pattern for working with NoRM and MongoDB. read more...

add a comment |category: |Views: 257

tags: another

ASP.NET MVC Tag Cloud HTML Extensions(www.codevoyeur.com)

submitted by zblockzblock(90) 2 years, 2 months ago

This article demonstrates how to create a simple HtmlHelper extension method to allow a collection of taggable data to be rendered as a tag cloud with varying levels. read more...

add a comment |category: |Views: 141

tags: another

Dynamic Actions in ASP.NET MVC(www.codevoyeur.com)

submitted by zblockzblock(90) 2 years, 2 months ago

The Castle Project's Monorail supports the notion of dynamic actions to allow for several named actions to map to a single action. This feature avoids having to create redundant actions that effectively do the same work. Dynamic actions simply map actions to a handler method by name. This article demonstrates a technique for creating dynamic actions in ASP.NET MVC. read more...

add a comment |category: |Views: 24

tags: another

A Simple IronPython ActionFilter for ASP.NET MVC(codevoyeur.com)

submitted by zblockzblock(90) 2 years, 8 months ago

ASP.NET MVC allows developer to wrap controller actions with arbitrary chunks of code by extending the ActionFilterAttribute class. This class provides four virtual methods that can be run before or after an action executes and before and after an actions result is delivered. This article describes how to create a single, extensible action filter that will inject IronPython scripts into the controller's request. read more...

add a comment |category: |Views: 16

tags: another

A Simple IronPython ControllerFactory for ASP.NET(codevoyeur.com)

submitted by zblockzblock(90) 3 years, 4 months ago

ASP.NET MVC includes a facility for creating a custom controller factory. By implementing IControllerFactory, it is possible to manage controllers easily with configuration files using popular IoC containers, such as Spring.NET and Windsor. This article demonstrates how to manage controllers using an external IronPython configuration file to manage controller instances. read more...

add a comment |category: |Views: 10

tags: another

A Boo Object Validation DSL(codevoyeur.com)

submitted by zblockzblock(90) 3 years, 6 months ago

Validation routines are typically stored in XML files when configured externally. This article will demonstrate how to create a simple DSL with Boo for validating both business objects and non-business objects (web forms for example). read more...

add a comment |category: |Views: 66

tags: another

ASP.NET MVC HtmlHelper Extensions for jQuery AutoComplete(codevoyeur.com)

submitted by zblockzblock(90) 3 years, 6 months ago

The jQuery JavaScript library has a rich repository of plugins. The AutoComplete plugin provides an easy mechanism to make any textbox perform like a searchable drop down list. While the code to provide a textbox with this autocomplete functionality is somewhat simple, it requires a little finessing to use it in place of a drop down list on an MVC view page. The HtmlHelper extension methods in this article will demonstrate how to achieve this behavior. read more...

add a comment |category: |Views: 775

tags: another