Tuesday, 15 November 2011

Custom Resource File Considerations

1) Pages need a default resource file
2) Custom resource file is added after

Temporary asp.net files needs to be cleared

Monday, 7 November 2011

jQuery document.ready and update panels

If you want to use jQuery document.ready but have update panels on the page then the even is not fired on partial page refreshes.

In this case, another handler needs to be added so call the ready event at the end of every request.

The code below can be used to achieve this.

Thursday, 3 November 2011

Visual Studio Installer Project - Unable to build project output group 'Content Files from (Your website) (Active)'

Often when building MSI Windows Installers from ASP.NET Web Projects within Visual Studio.NET you'll get this error:

Unable to build project output group 'Content Files from SOMEWEB (Active)'

And you'll have no idea why this happened, no descriptive error message, nada.

Turns out that this is the MSI builder's way of telling you that it can't physically find a Content File that is referenced in the Project (CSPROJ, or VBPROJ).

The trick is turn on 'Show All Files' and open every folder until you find one with the Yellow Yield Icon. This subtle tip is telling you that this file doesn't exist on disk, but it does exist in the Project. Right-Click on it and Exclude From Project.

When the MSI Installer builder can't find a file marked as Content it fails