2 hong34210 hong34210 于 2016.04.14 11:48 提问

JqGrid无法显示,不进入ashx

把JqGrid写到js里面,前面有一块代码也调用了这个js,可以显示纪录,也可以进入HistoryService.ashx里面,断点可以停,但是另外一个调用的时候,不进入HistoryService.ashx,断点不停。请问有人知道是怎么回事吗?

<div style="position:absolute; z-index:9999;"><table  align="left" cellpadding="0" cellspacing="0" border="0"><tr> <td>    <div id="jqgrid" style="border: solid 0px red; text-align: center; width: 920px; "> <table id="list1">  </table> <div id="pager1">  </div> </div>  </td> </tr>   </table></div><iframe style="position:absolute; width:100%; height:100%;z-index:1;"></iframe>
 function GetResult() {
js:
    $("#list1").GridUnload();

    var StationID = $("#hf_BusinessStation").val();
    var ExitTime = $("#hf_BusinessTime").val();
    var VehicleLicense = $("#hf_VehicleLicense").val();

    jQuery("#list1").jqGrid({
        url: '../HistoryService.ashx?StationID=' + StationID + "&ExitTime=" + ExitTime + "&VehicleLicense=" + VehicleLicense + "&random=" + new Date(),
        datatype: "json",
        colNames: ['类型', '出时间', '出车道', '入口站', '入口时间', '入车道', '过江通道', '卡号', '车型', '金额', "支付", "事件"],
        colModel: [

                        { name: 'LaneTypeName', index: 'LaneTypeName', width: 40, align: 'center', editable: false, editoption: { readonly: true} },
                        { name: 'ExitTime', index: 'ExitTime', width: 150, align: 'center', hidden: false, editable: true, editoption: { readonly: true} },
                        { name: 'ExitLane', index: 'ExitLane', width: 50, align: 'center', hidden: false, editable: true, editoption: { readonly: true} },
                        { name: 'EntryStation', index: 'EntryStation', width: 80, align: 'center', editable: false, editoption: { readonly: true} },
                        { name: 'EntryTime', index: 'EntryTime', width: 150, align: 'center', hidden: false, editable: false, editoption: { readonly: true} },
                        { name: 'EntryLane', index: 'EntryLane', width: 50, align: 'center', editable: false, editoption: { readonly: true} },
                        { name: 'ComputeStation', index: 'ComputeStation', width: 60, align: 'center', editable: false, editoption: { readonly: true} },
                        { name: 'CardID', index: 'CardID', width: 100, align: 'center', editable: false, editoption: { readonly: true} },
                        { name: 'VehicleClassName', index: 'VehicleClassName', width: 40, align: 'center', editable: false, editoption: { readonly: true} },
                        { name: 'TotalToll', index: 'TotalToll', width: 60, align: 'center', editable: false, editoption: { readonly: true} },
                        { name: 'PayMethodName', index: 'PayMethodName', width: 160, align: 'center', editable: false, editoption: { readonly: true} },
                        { name: 'InputTypeName', index: 'InputTypeName', width: 100, align: 'center', editable: false, editoption: { readonly: true} }
                    ],
        rowNum: 12,
        rowList: [10, 20, 30],
        pager: '#pager1',
        sortname: 'ExitTime',
        viewrecords: true,
        sortorder: "desc",
        height: "360",
        width: "920",
        shrinkToFit: false,
        autoScroll: false


        //loadonce: true
    });

}

1个回答

CSDNXIAON
CSDNXIAON   2016.04.14 11:52

jqgrid ashx
----------------------同志你好,我是CSDN问答机器人小N,奉组织之命为你提供参考答案,编程尚未成功,同志仍需努力!

Csdn user default icon
上传中...
上传图片
插入图片
准确详细的回答,更有利于被提问者采纳,从而获得C币。复制、灌水、广告等回答会被删除,是时候展现真正的技术了!