Pages

Friday, March 4, 2011

ASP.NET button in Sitecore is posting back to the layout rather than the sublayout

After setting up a new development environment for an existing Sitecore application where all the custom code was retrieved from the source control repository we ran into an issue.

Problem

All buttons on sublayouts which should post back to the page where the buttons are sitting - instead go to the layout where the form element is defined.

Neil Pullinger's blog described the same issue and a solution.

Solution

We found that the new sitecore install did not have the App_Browser folder and was missing two files from that folder.

  1. Form.browser
  2. Xaml.browser

After coping files from an existing working development site to the new Sitecore project and it fixed the problem.

See also:

No comments:

Post a Comment