function getFileList(path, lookFor, targetContainer, targetMasterContainer) {
    $.ajax({
        type: "POST",
        url: "/Public/FileListProvider.aspx",
        data: "{path:'" + path + "',lookFor:'" + lookFor + "'}",
        contentType: "application/json; charset=utf-8",
        dataType: "json",
        success: function (msg) {
            if (typeof msg != "undefined") {

                var count = 0;
                var Cont = $('#' + targetContainer).html();
                for (var i = 0; i < msg.length; i++) {
                    count++;

                    Cont += "<a href='" + msg[i].fileUrl + "'>" + msg[i].fileName + "</a><br/>";
                }
                if (count == 0) { $('#' + targetMasterContainer).hide(); } else {
                    $('#' + targetContainer).html(Cont);
                }
            }
            else { }
        },
        error: function () {

        }
    });
}

