﻿
function ContentRefreshView(id) {
    var contentId = parseInt(id);
    if (contentId <= 0) {
        alert("请输入正确的文章编号。");
    }
    else {
        $.ajax({
            type: "POST",
            dataType: "json",
            url: "/Resources/PutData/RefreshView.aspx",
            data: { ContentID: id },
            success: function(result) {
                if (result.msg != "suc") {
                    alert(result.msg);

                } 
            },
            error: function() { alert("未知错误J，刷新失败。"); }
        });
    }
}

function GetContentView(id) {
    return $.ajax({ url: "/Resources/Services/GetContentView.ashx?id=" + id, async: false }).responseText;
}