通过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";
                $.ajaxSettings.dataType = "text";
                //$.ajaxSettings.jsonp = "callbackparam";
                //$.ajaxSettings.jsonpCallback = "sucess_jsonpCallback";
                //$.ajaxSettings.contentType = "application/json";
                $.ajaxSettings.data = '{"UserId":"<%=UserID%>","ComputerIP":"<%=RemoteAddr%>","InfoCategory":"' + infoCat
                        + '","ActionName":"' + action
                        + '","originalValue":"' + originalValue + '","CurrentValue":"' + CurrentValue
                        + '","OtherSysInfo":"<%=browserInfo%>","RemoteHost":"<%=RemoteHost%>","RemoteMAC":"","Comment":""}';
                $.ajaxSettings.success = function (data) {
                    alert("操作完成!");
                    $.ajaxSettings.error = function (xhr) {
                        //alert("失败!");
                    }
                };
                $.ajax();
            }            
        </script>

删除成功了,并且添加日志也成功了(submit_Log()方法成功执行了)提示操作成功,但是asp页面没有刷新,我重新点击该页面才发现刚才删除的那条数据不显示了,不知道为什么不刷新BL_Set.asp页面?
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值