Although I have experience in .NET Core development, ASP.NET Web Apps are new territory for me.
Within my Index.cshtml, there is an iframe with the following attributes:
<iframe
height="800"
width="1300"
loading="eager"
frameBorder="0"
scrolling="no"
seamless="seamless"
allowtransparency="true"
src="https://example.com/?page_id=436"
title="My site" />
I am looking to ensure that this iframe reloads (not from cache) every time the page is refreshed. One suggestion I found online is as follows:
iframe.src = "https://example.com/?page_id=436?reload="+(new Date()).getTime();
My question is this: In an ASP.NET web app using bootstrap, where should I insert this code to trigger the iframe refresh? While I have some familiarity with javascript, my ASP.NET knowledge is limited, and my understanding of bootstrap is even more so. I am proficient in html/css, however.
I am unsure of where to place this javascript snippet in the code to ensure it executes every time the page is refreshed. Additionally, I am unsure of how to reference this code to my specific iframe.
Any guidance would be greatly appreciated!