October 6, 2015

Get Sitecore Item by Item ID

You can get sitecore item by using sitecore item ID. Once you have item object you can get all details of this item.
public static Item GetItemByID(string id)
        {
            return Sitecore.Context.Database.GetItem(new Sitecore.Data.ID(id));
        }

Just pass item’s id in above method.

 

No comments:

Post a Comment