当前位置: 代码迷 >> ASP >> 经过javascript刷新当前asp页面
  详细解决方案

经过javascript刷新当前asp页面

热度:178   发布时间:2013-09-06 10:17:17.0
通过javascript刷新当前asp页面

//BL_Set.asp
<script language="javascript">
function to_Del(LB_ID, LB_CODE, LB_AMT) {
        if (window.confirm("<%=STR_DEL_CFM%>")) {
                returnValue = sendDataList(LB_ID, "BL_del.asp");
                if (returnValue == "1") {
                var oldValue = "<LB_ID>" + LB_ID + "</LB_ID>"
                     + "<LB_CODE>" + LB_CODE + "</LB_CODE>"
                     + "<LB_AMT>" + LB_AMT + "</LB_AMT>";
                submit_Log("Band Level Set", "Delete", oldValue, "");
                Response.Redirect("BL_Set.asp");
            }
            else {
                alert("操作失败");
            }            
        }
function submit_Log(infoCat, action, originalValue, CurrentValue) {
                originalValue = originalValue.replace(/</g, "&lt;");
                originalValue = originalValue.replace(/>/g, "&gt;");
                CurrentValue = CurrentValue.replace(/</g, "&lt;");
                CurrentValue = CurrentValue.replace(/>/g, "&gt;");
                $.ajaxSettings.url = "<%=LogSite %>" + "/Admin/LogProxy.aspx/Log?doAction=Log";
                $.ajaxSettings.type = "post";
  相关解决方案