<%@ page language="C#" autoeventwireup="true" inherits="AppDetail, App_Web_appdetail.aspx.16ccd3f0" enableEventValidation="false" %>

<%@ Register Assembly="AjaxControlToolkit" Namespace="AjaxControlToolkit" TagPrefix="asp" %>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
    
    <title>..:: ICDAS 2.1 ::..</title>
    
    <link rel="icon" href="../icon/company.png" />
    
    <meta http-equiv="X-UA-Compatible" content="IE=9" />

    <script type="text/javascript" language="javascript" src="../App_Include/JavaScript/js_functions.js"> </script>

    <script type="text/javascript" language="javascript" src="../App_Include/JavaScript/jquery-1.8.3.js"></script>
    
    <script type="text/javascript" language="javascript" src="../App_Include/JavaScript/ScreenSaverStar.js"> </script>

    <link href="../App_Include/StyleSheet/Style.css" rel="stylesheet" type="text/css" />

    <script language="javascript" type="text/javascript">

        function resizeObject() {
            var w = getBrowserWindowSize().width;
            var h = getBrowserWindowSize().height - 5;
            //window.resizeTo(w, h);
            var cObj = document.getElementById("divChildBody");
            if (cObj != null) {
                //cObj.style.height = parseInt((h*79)/100) +"px";
                cObj.style.height = (parseInt(h) - 80) + "px";
                //cObj.style.width = parseInt(w) +"px";
            }
            var cObj = document.getElementById("pnlAlarm");
            if (cObj != null) {
                //cObj.style.height = parseInt((h*79)/100) +"px";
                cObj.style.height = (parseInt(h) - 100) + "px";
                //cObj.style.width = parseInt(w) +"px";
            }
            var cObj = document.getElementById("PanelAlarm");
            if (cObj != null) {
                //cObj.style.height = parseInt((h*79)/100) +"px";
                cObj.style.height = (parseInt(h) - 150) + "px";
                //cObj.style.width = parseInt(w) +"px";
            }

        }
        function ShowdivAlarm() {

            var cObj = document.getElementById("<%# divAlarm.ClientID %>");
            if (cObj != null) {
                cObj.style.visibility = "visible";
                cObj.style.display = "block";
            }
            return false;
        }

        function HidedivAlarm() {
            var cObj = document.getElementById("<%# divAlarm.ClientID %>");
            if (cObj != null) {
                cObj.style.visibility = "hidden";
                cObj.style.display = "none";
            }
            return false;
        }


        function editDblclickRow(Id,Name) {
            var hdnEquipmentMasterId = document.getElementById("<%# hdnEquipmentMasterId.ClientID%>");
            hdnEquipmentMasterId.value = Id;

            var hdnEquipmentName = document.getElementById("<%# hdnEquipmentName.ClientID%>");
            hdnEquipmentName.value = Name;
            var cObj = document.getElementById("<%# btnDblclickRow.ClientID%>");
            cObj.click();
        }
        
    </script>

</head>
<body bottommargin="0" leftmargin="0" topmargin="0" rightmargin="0" onload="resizeObject(); initScreenSaver('1',<%=Session["AutoLogOutTime"]%>);">
    <form id="form1" runat="server">
    <asp:ToolkitScriptManager runat="Server" EnablePartialRendering="true" AsyncPostBackTimeout="0"
        ID="ToolkitScriptManager1" />
    <div id="divMainBody" align="center" runat="server" width="100%" height="100%">
        <asp:UpdatePanel ID="uplChildBody" runat="server" UpdateMode="Always">
            <ContentTemplate>
                <asp:HiddenField ID="hdnBranchId" runat="server" Value="" />
                <asp:HiddenField ID="hdnEquipmentMasterId" runat="server" Value="0" />
                <asp:HiddenField ID="hdnEquipmentName" runat="server" Value="" />
                <table style="width: 100%; table-layout: fixed;" runat="server" id="tblheader">
                    <tr>
                        <td class="headerbg" align="left" style="border-style: none; height: 26px; width: 100%;
                            position: absolute; left: 1px; top: 8px;">
                            <table width="100%">
                                <tr>
                                    <td style="width: 90%;" valign="top">
                                        <asp:Label ID="lblCaption" runat="server" Text="Summary of Equipments" Width="100%"
                                            Font-Bold="true" Font-Names="Tahoma" ForeColor="AntiqueWhite" Font-Size="Medium"></asp:Label>
                                    </td>
                                    <td style="width: 10%;">
                                        <%--<asp:UpdatePanel ID="UpdatePanel1" UpdateMode="Always" runat="server">
                                            <ContentTemplate>--%>
                                        <table width="100%">
                                            <tr>
                                                <td style="width: 40%;">
                                                    <asp:ImageButton ID="imgGridView" runat="server" ImageUrl="~/Images/DSITButtonGridView.png"
                                                        OnClick="imgGridView_Click" BackColor="Transparent" Style="display: block;" />
                                                </td>
                                                <td>
                                                </td>
                                                <td style="width: 40%;">
                                                    <asp:ImageButton ID="imgListView" runat="server" ImageUrl="~/Images/DSITButtonListView.png"
                                                        OnClick="imgListView_Click" BackColor="Transparent" Style="display: block;" />
                                                    <asp:Button ID="btnDblclickRow" runat="server" BorderWidth="0px" Height="0px" Style="visibility: hidden;"
                                                        Width="0px" Text="" OnClick="btnDblclickRow_Click" />
                                                </td>
                                            </tr>
                                        </table>
                                        <%--</ContentTemplate>
                                            <Triggers>
                                            </Triggers>
                                        </asp:UpdatePanel>--%>
                                    </td>
                                </tr>
                            </table>
                        </td>
                    </tr>
                    <tr height="55px">
                        <td>
                            &nbsp
                        </td>
                    </tr>
                </table>
                <div id="divChildBody" runat="server" style="overflow: auto; width: 99%;">
                    <table cellspacing="0" cellpadding="0" align="left" border="0" style="width: 100%;
                        height: 100%; background-image: url(../Images/home-bg.JPG); background-repeat: repeat;">
                        <asp:Panel ID="pnllist" runat="server" Visible="false">
                            <tr>
                                <td valign="top">
                                    <table width="100%" align="left" cellpadding="1" cellspacing="0" class="tablefont">
                                        <tr>
                                            <td>
                                                <%--<asp:UpdatePanel ID="upnlTimer1" UpdateMode="Conditional" runat="server">
                                                    <ContentTemplate>--%>
                                                <asp:GridView ID="GVEquipmentDiagnosis" Width="100%" runat="server" CellPadding="3"
                                                    CellSpacing="3" AllowSorting="True" AutoGenerateColumns="False" RowStyle-CssClass="DGR_ITEM"
                                                    HeaderStyle-CssClass="DGR_HEADER" OnSorting="SortRecords" OnRowDataBound="ItemDataBound"
                                                    HeaderStyle-Height="25px" AllowPaging="false" BorderColor="#00ba5b" BorderWidth="3px">
                                                    <HeaderStyle CssClass="DGR_FIXEDHEADER" />
                                                    <Columns>
                                                        <asp:TemplateField HeaderStyle-CssClass="DGR_HEADER">
                                                            <HeaderTemplate>
                                                            </HeaderTemplate>
                                                            <ItemTemplate>
                                                                <asp:CheckBox ID="chkRecordId" runat="server"></asp:CheckBox>
                                                            </ItemTemplate>
                                                            <ItemStyle HorizontalAlign="Center" Width="10px" CssClass="hiddencol" />
                                                            <HeaderStyle HorizontalAlign="Center" Width="10px" CssClass="hiddencol" />
                                                        </asp:TemplateField>
                                                        <asp:BoundField DataField="EquipmentMasterId" HeaderText="EquipmentMasterId">
                                                            <HeaderStyle CssClass="hiddencol"></HeaderStyle>
                                                            <ItemStyle CssClass="hiddencol"></ItemStyle>
                                                        </asp:BoundField>
                                                        <asp:BoundField DataField="EquipmentName" HeaderText="Equipment Name">
                                                            <HeaderStyle BorderColor="#00ba5b" BorderWidth="3px" BorderStyle="Solid" BackColor="#005621"
                                                                CssClass="h2"></HeaderStyle>
                                                            <ItemStyle Width="20%" BorderColor="#00ba5b" BorderStyle="Solid" BorderWidth="3px"
                                                                CssClass="h3" BackColor="#e3f9df"></ItemStyle>
                                                        </asp:BoundField>
                                                        <asp:TemplateField>
                                                            <HeaderTemplate>
                                                                Status
                                                            </HeaderTemplate>
                                                            <ItemTemplate>
                                                                <asp:HiddenField ID="hdStatus" Value='<%# Eval("EquipmentOnlineStatus") %>' runat="server" />
                                                                <asp:Image ID="imgStatus" runat="server" />
                                                            </ItemTemplate>
                                                            <HeaderStyle BorderColor="#00ba5b" BorderWidth="3px" BorderStyle="Solid" BackColor="#005621"
                                                                CssClass="h2"></HeaderStyle>
                                                            <ItemStyle Width="20%" BorderColor="#00ba5b" BorderStyle="Solid" BorderWidth="3px"
                                                                HorizontalAlign="Center" CssClass="h3" BackColor="#e3f9df"></ItemStyle>
                                                        </asp:TemplateField>
                                                        <asp:TemplateField>
                                                            <HeaderTemplate>
                                                                Pending Alarms
                                                            </HeaderTemplate>
                                                            <ItemTemplate>
                                                                <asp:Image ID="imgALCount" runat="server" ImageAlign="AbsMiddle" />
                                                                <asp:Label ID="lblALCount" runat="server" Text='<%# Eval("ALCount") %>'></asp:Label>
                                                            </ItemTemplate>
                                                            <HeaderStyle BorderColor="#00ba5b" BorderWidth="3px" BorderStyle="Solid" BackColor="#005621"
                                                                CssClass="h2"></HeaderStyle>
                                                            <ItemStyle Width="20%" BorderColor="#00ba5b" BorderStyle="Solid" BorderWidth="3px"
                                                                HorizontalAlign="Center" CssClass="h3" BackColor="#e3f9df"></ItemStyle>
                                                        </asp:TemplateField>
                                                        <asp:BoundField DataField="MAXReviewLogDateTime" HeaderText="Pending Review">
                                                            <HeaderStyle BorderColor="#00ba5b" BorderWidth="3px" BorderStyle="Solid" BackColor="#005621"
                                                                CssClass="h2"></HeaderStyle>
                                                            <ItemStyle Width="20%" BorderColor="#00ba5b" BorderStyle="Solid" BorderWidth="3px"
                                                                HorizontalAlign="Center" CssClass="h3" BackColor="#e3f9df"></ItemStyle>
                                                        </asp:BoundField>
                                                        <asp:BoundField DataField="MAXApproveLogDateTime" HeaderText="Pending Approve">
                                                            <HeaderStyle BorderColor="#00ba5b" BorderWidth="3px" BorderStyle="Solid" BackColor="#005621"
                                                                CssClass="h2"></HeaderStyle>
                                                            <ItemStyle Width="20%" BorderColor="#00ba5b" BorderStyle="Solid" BorderWidth="3px"
                                                                HorizontalAlign="Center" CssClass="h3" BackColor="#e3f9df"></ItemStyle>
                                                        </asp:BoundField>
                                                    </Columns>
                                                    <RowStyle CssClass="DGR_ITEM" />
                                                    <HeaderStyle CssClass="DGR_HEADER" />
                                                    <PagerStyle CssClass="DGR_PAGER"></PagerStyle>
                                                    <PagerSettings Position="TopAndBottom" />
                                                </asp:GridView>
                                                <asp:Timer ID="tmrList" runat="server" Interval="60000" Enabled="true" OnTick="tmrList_Tick">
                                                </asp:Timer>
                                                <%--</ContentTemplate>
                                                    <Triggers>
                                                        <asp:AsyncPostBackTrigger ControlID="tmrList" EventName="Tick" />
                                                    </Triggers>
                                                </asp:UpdatePanel>--%>
                                            </td>
                                        </tr>
                                    </table>
                                </td>
                            </tr>
                        </asp:Panel>
                        <asp:Panel ID="pnlGrid" runat="server" Visible="true">
                            <tr>
                                <td valign="top">
                                    <%--<asp:UpdatePanel ID="upnlTimer2" UpdateMode="Conditional" runat="server">
                                        <ContentTemplate>--%>
                                    <table width="100%" align="left" cellpadding="1" cellspacing="0" class="tablefont">
                                        <tr>
                                            <td>
                                                <asp:Panel ID="pnlPaging" runat="server" Visible="True">
                                                    <table width="252" align="right" cellpadding="3" cellspacing="1" class="page-brd">
                                                        <tr>
                                                            <td class="tablegreybg">
                                                                <table width="100%" align="center" cellspacing="0">
                                                                    <tr>
                                                                        <td width="30%" height="25" align="right">
                                                                            <asp:ImageButton ID="cmdFirst" runat="server" Text=" &laquo; " OnClick="cmdFirst_Click"
                                                                                class="title" ImageUrl="~/Images/previous.jpg" ToolTip="First" Height="30px"
                                                                                Width="30px"></asp:ImageButton>
                                                                            <asp:ImageButton ID="cmdPrev" runat="server" Text=" &#8249; " OnClick="cmdPrev_Click"
                                                                                class="title" ImageUrl="~/Images/left.jpg" ToolTip="Previous" Height="30px" Width="30px">
                                                                            </asp:ImageButton>
                                                                        </td>
                                                                        <td width="40%" align="center" class="txtblack">
                                                                            <asp:DataList ID="dlPaging" runat="server" RepeatDirection="Horizontal" OnItemCommand="dlPaging_ItemCommand"
                                                                                OnItemDataBound="dlPaging_ItemDataBound">
                                                                                <ItemTemplate>
                                                                                    <asp:LinkButton ID="lnkbtnPaging" runat="server" ForeColor="Blue" CommandArgument='<%# Eval("PageIndex") %>'
                                                                                        CommandName="Paging" Text='<%# Eval("PageText") %>'></asp:LinkButton>&nbsp;
                                                                                </ItemTemplate>
                                                                            </asp:DataList>
                                                                        </td>
                                                                        <td width="40%" align="left">
                                                                            <asp:ImageButton ID="cmdNext" runat="server" Text=" &#8250; " OnClick="cmdNext_Click"
                                                                                class="title" ImageUrl="~/Images/right.jpg" ToolTip="Next" Height="30px" Width="30px">
                                                                            </asp:ImageButton>
                                                                            <asp:ImageButton ID="cmdLast" runat="server" Text=" &raquo; " OnClick="cmdLast_Click"
                                                                                class="title" ImageUrl="~/Images/last.jpg" ToolTip="Last" Height="30px" Width="30px">
                                                                            </asp:ImageButton>
                                                                        </td>
                                                                    </tr>
                                                                </table>
                                                            </td>
                                                        </tr>
                                                    </table>
                                                </asp:Panel>
                                            </td>
                                        </tr>
                                        <tr>
                                            <td>
                                                <asp:DataList ID="DLProduct" runat="server" RepeatColumns="4" RepeatDirection="Horizontal"
                                                    HorizontalAlign="Left" CellPadding="2" CellSpacing="2" OnItemDataBound="DLProduct_ItemDataBound">
                                                    <SeparatorStyle HorizontalAlign="Left" />
                                                    <ItemTemplate>
                                                        <table width="100%" border="0" cellpadding="2" cellspacing="1" class="disccription-table">
                                                            <tr>
                                                                <td colspan="2" align="center" valign="top" class="h2" style="background-color: #005621;">
                                                                    <asp:Label ID="lblheader" runat="server" Text='<%# Eval("EquipmentName") %>'> </asp:Label>
                                                                    <asp:HiddenField ID="hdnEquipmentMasterId" Value='<%# Eval("EquipmentMasterId") %>'
                                                                        runat="server" />
                                                                </td>
                                                            </tr>
                                                            <tr>
                                                                <td width="50%" height="40" align="left" valign="middle" class="h4">
                                                                    Status
                                                                </td>
                                                                <td width="50%" height="40" align="center" valign="middle" class="h4">
                                                                    <asp:HiddenField ID="hdListViewStatus" Value='<%# Eval("EquipmentOnlineStatus") %>'
                                                                        runat="server" />
                                                                    <asp:Image ID="imgListViewStatus" runat="server" />
                                                                </td>
                                                            </tr>
                                                            <tr id="trPendingAlarm" runat="server">
                                                                <td height="40" align="left" valign="middle" style="border-color: #005621; border-width: 2px;
                                                                    background-color: #e3f9df;" class="h3">
                                                                    Pending Alarms
                                                                </td>
                                                                <td width="50%" height="40" align="center" valign="middle" class="h4">
                                                                    <asp:Image ID="imgListViewPendingAlarm" runat="server" ImageAlign="AbsMiddle" />
                                                                    <asp:Label ID="lblListViewALCount" runat="server" Text='<%# Eval("ALCount") %>'></asp:Label>
                                                                </td>
                                                            </tr>
                                                            <tr>
                                                                <td height="40" align="left" valign="middle" style="border-color: #005621; border-width: 2px;
                                                                    background-color: #e3f9df;" class="h3">
                                                                    Pending Review
                                                                </td>
                                                                <td height="40" align="center" valign="middle" style="border-color: #005621; border-width: 2px;
                                                                    background-color: #e3f9df;" class="h3">
                                                                    <asp:Label ID="lblPendingReview" runat="server" Text='<%# Eval("MAXReviewLogDateTime") %>'></asp:Label>
                                                                </td>
                                                            </tr>
                                                        </table>
                                                    </ItemTemplate>
                                                    <ItemStyle HorizontalAlign="Left" VerticalAlign="Top" Wrap="True" />
                                                </asp:DataList>
                                            </td>
                                        </tr>
                                        <tr>
                                            <td>
                                                <asp:Panel ID="pnlPagingBottom" runat="server" Visible="True">
                                                    <table width="252" align="right" cellpadding="3" cellspacing="1" class="page-brd">
                                                        <tr>
                                                            <td class="tablegreybg">
                                                                <table width="100%" align="center" cellspacing="0">
                                                                    <tr>
                                                                        <td width="30%" height="25" align="right">
                                                                            <asp:ImageButton ID="cmdFirstBottom" runat="server" Text=" &laquo; " OnClick="cmdFirst_Click"
                                                                                class="title" ImageUrl="~/Images/previous.jpg" ToolTip="First" Height="30px"
                                                                                Width="30px"></asp:ImageButton>
                                                                            <asp:ImageButton ID="cmdPrevBottom" runat="server" Text=" &#8249; " OnClick="cmdPrev_Click"
                                                                                class="title" ImageUrl="~/Images/left.jpg" ToolTip="Previous" Height="30px" Width="30px">
                                                                            </asp:ImageButton>
                                                                        </td>
                                                                        <td width="40%" align="center" class="txtblack">
                                                                            <asp:DataList ID="dlPagingBottom" runat="server" RepeatDirection="Horizontal" OnItemCommand="dlPaging_ItemCommand"
                                                                                OnItemDataBound="dlPaging_ItemDataBound">
                                                                                <ItemTemplate>
                                                                                    <asp:LinkButton ID="lnkbtnPaging" runat="server" ForeColor="Blue" CommandArgument='<%# Eval("PageIndex") %>'
                                                                                        CommandName="Paging" Text='<%# Eval("PageText") %>'></asp:LinkButton>&nbsp;
                                                                                </ItemTemplate>
                                                                            </asp:DataList>
                                                                        </td>
                                                                        <td width="40%" align="left">
                                                                            <asp:ImageButton ID="cmdNextBottom" runat="server" Text=" &#8250; " OnClick="cmdNext_Click"
                                                                                class="title" ImageUrl="~/Images/right.jpg" ToolTip="Next" Height="30px" Width="30px">
                                                                            </asp:ImageButton>
                                                                            <asp:ImageButton ID="cmdLastBottom" runat="server" Text=" &raquo; " OnClick="cmdLast_Click"
                                                                                class="title" ImageUrl="~/Images/last.jpg" ToolTip="Last" Height="30px" Width="30px">
                                                                            </asp:ImageButton>
                                                                        </td>
                                                                    </tr>
                                                                </table>
                                                            </td>
                                                        </tr>
                                                    </table>
                                                </asp:Panel>
                                            </td>
                                        </tr>
                                    </table>
                                    <asp:Timer ID="tmrGrid" runat="server" Interval="60000" Enabled="true" OnTick="tmrGrid_Tick">
                                    </asp:Timer>
                                    <%--</ContentTemplate>
                                        <Triggers>
                                            <asp:AsyncPostBackTrigger ControlID="tmrGrid" EventName="Tick" />
                                        </Triggers>
                                    </asp:UpdatePanel>--%>
                                </td>
                            </tr>
                        </asp:Panel>
                    </table>
                </div>
            </ContentTemplate>
            <Triggers>
                <asp:AsyncPostBackTrigger ControlID="tmrList" EventName="Tick" />
                <asp:AsyncPostBackTrigger ControlID="tmrGrid" EventName="Tick" />
            </Triggers>
        </asp:UpdatePanel>
    </div>
    <asp:UpdatePanel ID="uplAlarm" runat="server" UpdateMode="Always">
        <ContentTemplate>
            <div id="divAlarm" runat="server" align="center" style="width: 100%; height: 1500px;
                top: 0px; position: absolute; visibility: hidden; display: none; background-color: #eeeeee;
                padding-left: 10%; text-align: center; vertical-align: middle; filter: alpha(opacity=92);
                opacity: 0.92;">
                <br />
                <br />
                <asp:Panel ID="pnlAlarm" runat="server" BorderColor="Black" BorderStyle="Ridge" BackColor="White"
                    BorderWidth="1" Width="80%" Height="600px" HorizontalAlign="Center">
                    <table id="Table5" cellspacing="0" cellpadding="0" width="100%" align="center">
                        <tr>
                            <td valign="top" align="center">
                                <table class="subtitle" id="Table6" cellspacing="1" cellpadding="1" width="100%"
                                    align="center" border="0">
                                    <tr>
                                        <td align="left">
                                            <b>
                                                <asp:Label ID="lblAlarmDetailheader" runat="server" Text="" ForeColor="Black"> </asp:Label></b>
                                        </td>
                                        <td align="right">
                                            <asp:ImageButton ID="ImageButton1" runat="server" ImageUrl="~/ToolBarIcon/Cancel.png"
                                                BackColor="Transparent" ToolTip="Close" OnClick="ImageButton1_Click" />
                                        </td>
                                    </tr>
                                </table>
                                <table id="Table7" cellspacing="1" cellpadding="1" width="100%" align="center" border="0">
                                    <tr>
                                        <td>
                                            <asp:Panel ID="PanelAlarm" ScrollBars="Auto" Height="550px" runat="server" Visible="true"
                                                HorizontalAlign="Center" Width="100%">
                                                <asp:GridView ID="GVAlarmDetail" Width="100%" runat="server" CellPadding="0" AllowSorting="false"
                                                    AutoGenerateColumns="False" OnRowDataBound="GVAlarmDetail_ItemDataBound" BorderColor="#E0E4EA"
                                                    AllowPaging="false">
                                                    <Columns>
                                                        <asp:BoundField DataField="AlarmLogDateTime" HeaderText="Log Date Time">
                                                            <HeaderStyle CssClass="DGR_HEADER" Width="20%"></HeaderStyle>
                                                            <ItemStyle CssClass="" Width="20%" HorizontalAlign="Center"></ItemStyle>
                                                        </asp:BoundField>
                                                        <asp:BoundField DataField="AlarmEvent" HeaderText="Alarm Desc">
                                                            <HeaderStyle CssClass="DGR_HEADER" />
                                                            <ItemStyle HorizontalAlign="left" Width="80%" />
                                                        </asp:BoundField>
                                                        <asp:BoundField DataField="EquipmentMasterId" HeaderText="EquipmentMasterId">
                                                            <HeaderStyle CssClass="hiddencol"></HeaderStyle>
                                                            <ItemStyle CssClass="hiddencol"></ItemStyle>
                                                        </asp:BoundField>
                                                    </Columns>
                                                    <HeaderStyle CssClass="DGR_FIXEDHEADER" />
                                                    <PagerSettings Position="TopAndBottom" />
                                                    <PagerStyle CssClass="DGR_PAGER"></PagerStyle>
                                                    <RowStyle CssClass="DGR_ITEM" />
                                                </asp:GridView>
                                            </asp:Panel>
                                        </td>
                                    </tr>
                                </table>
                            </td>
                        </tr>
                    </table>
                    <asp:HiddenField ID="hdnLoginPassword" runat="server" />
                    <asp:HiddenField ID="hdnValidateLoginName" runat="server" />
                </asp:Panel>
            </div>
        </ContentTemplate>
        <Triggers>
        </Triggers>
    </asp:UpdatePanel>
    </form>

    <script type="text/javascript">

        var xPos, yPos;
        var prm = Sys.WebForms.PageRequestManager.getInstance();
        prm.add_beginRequest(BeginRequestHandler);
        prm.add_endRequest(EndRequestHandler);
        function BeginRequestHandler(sender, args) {
            xPos = $get('<%=divChildBody.ClientID %>').scrollLeft;
            yPos = $get('<%=divChildBody.ClientID %>').scrollTop;
        }
        function EndRequestHandler(sender, args) {
            $get('<%=divChildBody.ClientID %>').scrollLeft = xPos;
            $get('<%=divChildBody.ClientID %>').scrollTop = yPos;
        }
    </script>

</body>
</html>
