Archive for December 1st, 2009

Giving Umbraco custom tree’s children!

This was something i was looking for for a while- turns out it is buried deep in their forums;

As shown in their own example (I’ve reblogged here incase the page ever moves or dissapears!!)

Turns out it’s just a case of setting the “source” property of the XmlTreeNode.

public override void Render(ref XmlTree tree)
            Dictionary.DictionaryItem[] tmp;
        // is set when the tree.aspx creates this object. 
        //It is the nodeID that is passed in via the tree service parameters (i.e. the query string)
        //this checks if the id is the StartNodeID (root node), if it’s not then this will 
        //look up the child nodes for the current dictionary item.
            if ( == this.StartNodeID)
                tmp = Dictionary.getTopMostItems;
                tmp = new Dictionary.DictionaryItem(;

            foreach (Dictionary.DictionaryItem di in tmp)
             XmlTreeNode xNode = XmlTreeNode.Create(this);
             xNode.NodeID =;
             xNode.Text = di.key;
             xNode.Action = string.Format("javascript:openDictionaryItem({0});",;
             xNode.Icon = "settingDataType.gif";
             xNode.OpenIcon = "settingDataType.gif";
             //if there is no children, then set the source to an empty string
//this will ensure that there is no expand button for this node when it is 
//rendered. Otherwise, set the source to the tree service url by using
//the BaseTree’s GetTreeServiceUrl method
             xNode.Source = di.hasChildren ? this.GetTreeServiceUrl( : "";


Whats the definitive maximum size of an email address?

I’ve written lots of app’s which store email addresses, and usually go for a nvarchar(100) to store them, but thought I would find out once and for all, what the actual maximum size was- just out of curiousity.

Having googled around, I came across a couple of lengthy posts on the matter (here and here), quoting figures from various standard (which seemed to point at 320 character), then corrections to those standards by members of ICANN based on the SMTP spec and so on and so forth…

After much trawling, it seems the official answer is : 254 characters (256 including the standard <> brackets around the address)

, ,


I absolutely love these. They came at the lace wigs are good quality, and very soft. Absolutely love these extensions. I just love this hair. Hair came on time, I waited until after hair extensions uk very full, no shedding and it is been installed for 3 weeks now and yes I jus ordered 3 more bundles. Lol. I definitely recommend this company for your bundles ladies. They are soft, hair bundles on the head for human hair wigs and I would continue to recommend them. I have thinner hair so they cover and blend nicely.