Refresh styles programatically
Q:
I have a custom style used with the easy menu control on a master page. However I recently updated the style sheet related to that style and would like to know if there is a way to force the refresh of it as basically anyone who has loaded the page once before has to press F5 in order for it to not look bad. Typically I would just put a version number on the css file in the link however that is all handled in the dll so I have no control over it.
Is there a way to force the refresh programatically?
A:
Imagine that your custom style is in the 'styles/futura' folder where you have updated the style.css file.
Copy all its files to the new folder 'styles/futura_version_1.1' .
Then just replace all StyleFolder="styles/futura" with StyleFolder="styles/future_version_1.1" for the EasyMenu controls in the page.
|