Software Blog

January 12 2012

2012: New Year, New Look, New Content!

So it's 3:30 AM here at home so I'll just keep this short and simple so I can (try to!) get some sleep.
 

After almost an entire year of distractions, procrastinations, disasters, setbacks, and beer, I finally sat myself down long enough to finally upgrade my site to the latest version of Sitefinity. With such a rapid, aggressive release schedule, Telerik has certainly kept me busy exploring the ever-increasing and always fantastic new features.  

But as it does to everyone, the turning of the calendar to a new year has given me an opportunity to reflect, reset, and refocus.

SO MUCH has ...

Full story

April 05 2011

Overriding ASP.NET Theme CSS Files with Conditional Comments

One of the biggest annoyances in ASP.NET is the way it adds CSS files to your <head> element of your pages. It insists on adding them to the end, offering you no way to add your own custom styles that override the theme unless you go down the line and add !important to each element.

This is especially detrimental if you're trying to add IE-only stylesheets using conditional comments. Since the theme files are loaded after the IE stylesheet, all your custom styles will be overridden as if it was not present at all.

There are some hacks, from using ...

Full story

February 28 2011

Sitefinity Toolkit Moves to Codeplex

Now that Sitefinity 4 has been out for over a month, the time I have available for maintaining the Sitefinity Toolkit is quickly diminishing. However, I still receive frequent emails asking for help, suggesting new features, or reporting bugs. I'm glad that so many of you continue to find the toolkit useful, and I regret that I don't have enough time to keep up with all of your feedback.

As a result, I am pleased to announce that, at long last, I am releasing the full source code for the Sitefinity Toolkit on Codeplex. All updates, discussions, bug reports, ...

Full story

February 04 2011

JustCode is JustSmart

I was doing some coding today when I discovered something very slick about Telerik's JustCode tool I just had to share.

Telerik-Just-Code-Context-Menu

I needed to add a property to a class, and my coding style puts private properties and their public accessors in separate #regions. I added the private member to the "Private Properties" region, and decided to let Just Code stub it out for me, expecting it to generate the public property directly beneath my private variable. I figured I would just copy and paste it into the appropriate region.

Imagine my surprise when instead of generating the code beneath ...

Full story

January 24 2011

MVC Attributes with SubSonic ActiveRecord T4 Templates

One of my favorite features of the ASP.NET MVC Framework is the ability to include form validation out of the box using Attributes. Marking a Model with the Required attribute and including a few script references enables a built-in framework that validates your forms automatically.

However, my ORM tool, SubSonic, by default doesn't account for this, as it has its own rules for generatic the code for the data models. However, after playing with the T4 templates for a few minutes, I discovered just how easy it is to manipulate the generated code to fit right into the MVC ...

Full story