Click here to Skip to main content
15,881,812 members
Articles / Productivity Apps and Services / Sharepoint

Site Content Web Part (SharePoint 2010)

Rate me:
Please Sign up or sign in to vote.
4.17/5 (4 votes)
15 May 2010CPOL3 min read 58.5K   1.7K   10  
Displays site and sub-site content in a hierarchical tree that is expandable and collapsible
//
//	SPWebDescriptionAttribute.cs - � Questech Systems
//	This notice must stay intact for use. Not for resale.
//
using System;

using QuestechSystems.SharePoint;

namespace QuestechSystems.SharePoint.WebControls
{
    [AttributeUsage(AttributeTargets.All, AllowMultiple = false, Inherited = true)]
    public class SPWebDescriptionAttribute : System.Web.UI.WebControls.WebParts.WebDescriptionAttribute
    {
        private string _attribute;

        public SPWebDescriptionAttribute(string attribute)
        {
            _attribute = attribute;
        }
 
        public override string Description
        {
            get
            {
                string value = Utility.GetResourceString(_attribute);
                if (String.IsNullOrEmpty(value))
                {
                    value = _attribute;
                }
                return this.DescriptionValue = value;
            }
        }
    }
}

By viewing downloads associated with this article you agree to the Terms of Service and the article's licence.

If a file you wish to view isn't highlighted, and is a text file (not binary), please let us know and we'll add colourisation support for it.

License

This article, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)


Written By
Software Developer (Senior)
Canada Canada
A Microsoft Certified Professional Developer and Technology Specialist.

Experience and expertise in SharePoint 2016 / 2013 / 2010 / 2007.

Role ranges from a developer in a multi-person team to a solution consultant with expert-level skills, leading a project to completion status.

Proven experience working effectively in a team environment and a self-managed environment.

Comments and Discussions