Ensure that JavaScript files or CSS files are refreshed for each new version

We can add into references to JS or CSS files from HTML:

<SCRIPT TYPE="text/JavaScript " SRC="FileName.js?v=<%=AssemblyVersionNumber()%>">

The attribute does nothing other than trick the browser into thinking that the .js file must be retrieved from server for new version instead of cached .

You can write your own AssemblyVersionNumber() function or use my function from My SystemHelper class. like the following:

SystemHelper.GetAssemblyVersion(Assembly.GetExecutingAssembly())

Idea from http://www.thescripts.com/forum/thread165240.html

Note that it could be  problems, if head element has runat="server" attribute.

Also consider to reduce number of CSS and JS files.

«October»
SunMonTueWedThuFriSat
30123456
78910111213
14151617181920
21222324252627
28293031123
45678910