Last active
August 3, 2022 04:38
-
-
Save ritacse/7c61f1164da4ad0d08a5a8f4e19dc29c to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
///in .cs page add version using any number: | |
public partial class frmKPIWiseAchievementFinal : System.Web.UI.Page | |
{ | |
public string version = DateTime.Now.ToString(); ///<- Just add this line | |
protected void Page_Load(object sender, EventArgs e) | |
{ | |
} | |
} | |
//// in html page add version with js file name: | |
<script src="../../Resources/scripts/app/KPI_Incentive/KPIWiseAchievementFinal.js?v=<%=version %>"></script> | |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
///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/[email protected]"></script> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment