Warning: file_get_contents(/data/phpspider/zhask/data//catemap/7/user-interface/2.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
在JavaScript(ASP.NET)中将查询字符串传递给Web服务_Javascript_Asp.net_Web Services_Jqgrid_Query String - Fatal编程技术网

在JavaScript(ASP.NET)中将查询字符串传递给Web服务

在JavaScript(ASP.NET)中将查询字符串传递给Web服务,javascript,asp.net,web-services,jqgrid,query-string,Javascript,Asp.net,Web Services,Jqgrid,Query String,我在ASP.Net中使用jqGrid,我调用一个Web服务来填充网格,我的问题是:我想将网格的“url”属性的查询字符串传递给Web服务,我该如何。。。? 我想做的就是以任何方式向服务传递一个值 我的jqGrid代码: function Btt_Search_onclick() { SearchFilters = "1"; // Concatenate SearchFilters with , between each filter $("#MyGrid").se

我在ASP.Net中使用jqGrid,我调用一个Web服务来填充网格,我的问题是:我想将网格的“url”属性的查询字符串传递给Web服务,我该如何。。。? 我想做的就是以任何方式向服务传递一个值

我的jqGrid代码:

function Btt_Search_onclick() {
        SearchFilters = "1"; // Concatenate SearchFilters with , between each filter
        $("#MyGrid").setGridParam({
            url: "../Webservice/QueueManagement.asmx?" + SearchFilters + "/AllDataReport"
        }).trigger("reloadGrid");
    }
提前谢谢…

我想是的,问题/答案回答了你的问题

基本上,您只需要设置一个查询字符串参数,并在服务中设置一个相应的参数。但是,根据您如何格式化示例代码,我不确定您到底想做什么。你不能这样做吗:

url: "../Webservice/QueueManagement.asmx?filter=" + SearchFilters + "&queueName=AllDataReport"