<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="SetDTPage.aspx.cs" Inherits="MKInsight.Online.APPS.SetDTPage" %>

<!DOCTYPE html>
<%@ Register Assembly="AjaxControlToolkit" Namespace="AjaxControlToolkit" TagPrefix="cc1" %>

<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
    <title></title>

    <script type="text/javascript" src="scripts/jquery/jquery_min.js"></script>

    <script type="text/javascript">
        
        function tm() {
            
            document.getElementById('<%:hd_timeOffset.ClientID%>').innerText = new Date().getTimezoneOffset().toString();
        }
    </script>

       <script>  
           

           function SetDate() {

               PageMethods.SetData(new Date().getTimezoneOffset().toString(),OnSetDate, OnSetDateError);
           }

           function OnSetDateError(error, userContext, methodName) {

           }

           function OnSetDate(result, userContext, methodName) {
               $('[id*=btn_Refresh]', parent.document).click();
           }

        </script>

</head>
<body onload="SetDate();">
    <form id="form1" runat="server">
       
         <cc1:ToolkitScriptManager ID="sm_Manager" runat="server" LoadScriptsBeforeUI="true"
            EnablePartialRendering="true" ScriptMode="Release" EnableScriptGlobalization="True"
            CombineScripts="true" EnableScriptLocalization="true" AsyncPostBackTimeout="600"
            EnablePageMethods="true">
        </cc1:ToolkitScriptManager>

        <asp:Label ID="hd_timeOffset" runat="server" text="."></asp:Label>

     
       
    </form>
</body>
</html>
