Thursday, 16 July 2009

Sitecore - ASP Panel default button not firing

When I was converting a rendering to a sublayout in Sitecore, the ASP:Panel default button event was not firing. The problem was the rendering had the caching settings turned on when it was original assinged to an item. For sublayouts, the caching has to be turned off to enable .NET to bind the controls to events.

The technical problem is when the html for a control is cached, it is not going through the .Net rendering engine, and therefore the control will be missing in the hidden __Eventvalidation field.

So ensure Sitecore caching is turned off for the sublayouts.

No comments: