Thursday, 3 September 2009

Broken .designer files

Occasionally I somehow manage to break the designer files, which eventually flag up errors like:

The name 'xxxx' does not exist in the current context.

To fix this, delete the .designer file then right click on the aspx or ascx and select 'Convert to Web Application' this will rebuild the designer file and include all the necessary references to controls.

No comments: