Eliminate duplication in CSS with .less – a .NET HTTP handler

 

One of the frustrating aspects of working with CSS (one of many, actually) is the amount of duplication in a .css file. .less help to keep your CSS files DRY using 4 constructs:

  • Variables
  • Mixins
  • Operations
  • Nested Rules

image

An HTTP handler is configured to respond to requests for the .less files.

<httpHandlers>
    <add type="dotless.Core.LessCssHttpHandler, dotless.Core" validate="false" path="*.LESS" verb="*"/>
</httpHandlers>

When a request arrives for a .less file it is the handler’s job to parse the .less file and transform it into standard CSS rule sets.

Adding Gravatar in ASP.NET

 

image

Part 1: Adding Gravatars to your ASP.NET site in a few lines of code – It’s easy to add avatars to your site

Part 2: Avatars? Isn’t that some kind of D&D comic book stuff? – Avatars can help make your community website feel more like a community and less like a website

Part 3: Gravatar 201: Advanced Gravatars in ASP.NET

Also, identicon – the 9-block IP Identification. Identicon.NET in codeplex.

Also, Gravatars is used in open source ASP.NET projects: dasBlog (weblog system), SubText (weblog system), and DotNetKicks.

Step by Step on creating Nested Master Page from an existing CSS template

The following CSS template can be found here: www.opensourcetemplates.org

2-Columns Layout

image

image

1-Column Layout

image

Contact Us Layout

image

For ASP.NET Design Templates Starter Kit that are using Master Pages but not the new Nested Master Pages feature found in VS2008 go here.

Also check this out…another article on how to take the CSS Design templates and modify them to use ASP.NET 2.0 features and customize it.

Via VS 2008 Nested Master Page Support – ScottGu’s Blog