Use of this code :
<script type="text/javascript" language="javascript">
window.history.forward(1);
document.attachEvent("onkeydown", functionName);
function functionName()
{
switch (event.keyCode)
{
case 116 :
event.returnValue = false;
event.keyCode = 0;
window.status = "We have disabled F5";
break;
}
}
</script>
protected void Page_Load(object sender, EventArgs e)
{
HttpContext.Current.Response.Cache.SetCacheability(HttpCacheability.NoCache);
HttpContext.Current.Response.Cache.SetNoServerCaching();
HttpContext.Current.Response.Cache.SetNoStore();
}