Skip to content

Instantly share code, notes, and snippets.

@ritacse
Created August 3, 2022 04:27
Show Gist options
  • Select an option

  • Save ritacse/28fce27cbc5eadd4ef4170c0496ee931 to your computer and use it in GitHub Desktop.

Select an option

Save ritacse/28fce27cbc5eadd4ef4170c0496ee931 to your computer and use it in GitHub Desktop.
///in controller add version using any number:
public ActionResult Survey()
{
ViewBag.version = DateTime.Now.ToString("yymmddHH");
return View();
}
//// in html page add version with js file name:
<script src="~/Assets/lib/CommonUI/js/BIDA/SurveyReport.js?version=@ViewBag.version"></script>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment