Hi, Please let me know how to fix this issue.
<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="default.aspx.cs" Inherits="default" MasterPageFile="~/Masterpage.Master"%>
<%@ Register Assembly="AjaxControlToolkit" Namespace="AjaxControlToolkit" TagPrefix="asp"%>
<asp:Content ID="Content1" ContentPlaceHolderID="head" Runat="Server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="MainContent" Runat="Server">
<iframe id="frameName1" src="index.aspx" frameborder="0" scrolling="auto" width="30%" height="1000px" align="left"></iframe>
<iframe id="frameName2" src="home.htm" frameborder="0" scrolling="auto" width="70%" height="1000px" align="right"></iframe>
<script src="scripts/jquery-1.12.4.js" type="text/javascript"></script>
<script type="text/javascript">
var sessionTimeout = "<%= Session.Timeout %>";
function DisplaySessionTimeout(timeout) {
var seconds = timeout / 1000;
document.getElementsByName("seconds").innerHTML = seconds;
setInterval(function () {
seconds--;
document.getElementById("seconds").innerHTML = seconds;
}, 1000);
setTimeout(function () {
//Show Popup before 20 seconds of timeout.
$("#ExpireConfirm_Submit").dialog({
height: 200,
width: 400,
resizable: false,
modal: true,
title: "Session Expire Confirmation",
open: function () {
$('p#id1').html(sessionTimeout);
},
buttons: {
"Yes": function () {
$(location).attr("href", "SessionExpired.aspx").submit();
$(this).dialog("close");
},
"No": function () {
ResetSession();
$(this).dialog("close");
}
}
}).prev(".ui-dialog-titlebar").css("background", "red");
}, timeout - 55 * 1000);
setTimeout(function () {
$(location).attr("href", "SessionExpired.aspx").submit();
}, timeout);
};
function ResetSession() {
window.location = window.location.href;
}
</script>
<div id="ExpireConfirm_Submit">
<table>
<tr>
<td style="width: 230px;">
Your Session will expire in <span id="seconds"></span> seconds.<br />
Please submit/update your changes or you will loose your data.
</td>
</tr>
</table></div>
</asp:Content>
Open in new window