Software Blog: C#

Posted under: General Programming

As I mentioned last time, I was inspired by Wunderlist to expand my developer skillset by learning how to create an Add-in for Outlook that would let me display and manage tasks. Although the functionality of the add-in is important, it was really more of an excuse to see if I could do it.

However, I had a difficult time just finding relevant and useful information on just how the heck you do this. I searched for hours on MSDN, as well as general searching on the internet for variations of "how to create an outlook add-in" that yielded pretty ...

Full story

Posted under: Web Development

The Sitefinity classification widgets allow you display a list of taxonomy items (Categories, Tags, etc.)from your various content items. By default this control collects and renders all used taxonomy items, regardless of type.

There is also a ContentType property that allows you to filter the taxonomy list to only render if items of that type are linked with an associated taxonomy, allowing you to create different lists for different types.

Unfortunately, this control doesn't appear to yet support filtering of Dynamic Content Types created by the Sitefinity Module Builder. Because these are dynamic types, the control cannot ...

Full story

JustCode is JustSmart

Feb
2011
04

Posted under: General Programming

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

Posted under: Web Development

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

Posted under: Web Development

IMPORTANT UPDATE FOR USERS OF SITEFINITY TOOLKIT 1.2

There is a compatibility issue between the Mobile Foundation library used for mobile detection and the Sitefinity Administration Login that could not be resolved. The Mobile Detection Module can still be used but the Mobile Foundation must be DISABLED in web.config by commenting out the related sections in web.config:

<!--
<sectionGroup name="fiftyOne">
<section name="log" type="FiftyOne.Foundation.Mobile.Configuration.LogSection, FiftyOne.Foundation" requirePermission="false" allowDefinition="Everywhere" restartOnExternalChanges="false" allowExeDefinition="MachineToApplication"/>
<section name="redirect" type="FiftyOne.Foundation.Mobile.Configuration.RedirectSection, FiftyOne.Foundation" requirePermission="false" allowDefinition="Everywhere" restartOnExternalChanges="false" allowExeDefinition="MachineToApplication"/>
<section name="wurfl" type="FiftyOne.Foundation.Mobile.Detection.Wurfl.Configuration.WurflSection, FiftyOne.Foundation" requirePermission="false" allowDefinition="Everywhere" restartOnExternalChanges="false" allowExeDefinition="MachineToApplication"/>
</sectionGroup>
-->
  <!--
<fiftyOne>
<wurfl wurflFilePath="~/App_Data/wurfl.xml.gz">
<wurflPatches>
<add name="browser_definitions" filePath="~/App_Data/web_browsers_patch.xml" enabled="true"/>
</wurflPatches>
</wurfl>
</fiftyOne>
-->

Commenting ...

Full story