Sunday, February 6, 2011

Parameter to sublayout (ASCX)

My colleague was having issue with Parameters that she assigned to Sublayout. For some reason the parameter that set in Presentation definition in Sitecore is returning empty when accessing it programmatically.

It turns out that Sitecore does not set the presentation properties by default. So we have to set this up before accessing it.