﻿$(document).ready(function() {
    // Add the page method call as an onclick handler for the div.
    $("#Result").click(function() {
        /*
        $.ajax({
            type: "POST",
            url: ep_settings.getInstance().url + "/GetDate",
            data: {
                id: ep_settings.getInstance().id 
            },
            contentType: "application/json; charset=utf-8",
            dataType: "json",
            success: function(msg) {
                // Replace the div's content with the page method's return.
                //$("#Result").text(msg);
                // $("#Result").html(msg.d);
                alert(0);

            }
        });
        */
    $.ajax({
            contentType: "application/json; charset=utf-8",
            url: ep_settings.getInstance().url + "/GetDate",
            type: "POST",
            data: ({
                id: ep_settings.getInstance().id
            }),
            success: function(msg) {
                alert(msg);  
            }
        });
    });
});
function ep_settings() {

}

ep_settings.prototype.id;

ep_settings.prototype.url;

ep_settings.instance = null;

ep_settings.getInstance = function() {

    if (this.instance == null) {

        this.instance = new ep_settings();

    }

    return this.instance;

}
