Answers for "sitecore rendering paramaters get"

0

sitecore rendering paramaters get

var selectedItemId = RenderingContext.Current.Rendering.Parameters["Background"];
var selectedItem = RenderingContext.Current.ContextItem.Database.GetItem(ID.Parse(Guid.Parse(selectedItemId)));
    var parameter = selectedItem["Value"];
Posted by: Guest on September-09-2021

Browse Popular Code Answers by Language