SharePoint查询字符串URL过滤两个或多个参数 [英] SharePoint Query String URL Filter passing two or more parameters

查看:92
本文介绍了SharePoint查询字符串URL过滤两个或多个参数的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

嗨 


当我尝试在查询字符串url过滤器webpart中传递两个或更多参数但事先过滤选项发送所有值都被禁用。能够选择仅发送第一个值。 



但在我的情况下我必须发送Url.aspx?fieldvalue = Value1& Fieldvalue2 = value2


请帮我解决这个问题。

解决方案

在这里你去



是的,我们可以构造查询字符串以包含多个值。


< p style ="padding-right:0px; font-size:14px; line-height:inherit; font-family:'Segoe UI','Lucida Grande',Verdana,Arial,Helvetica,sans-serif; vertical-align: baseline; list-style-type:none; color:#2a2a2a">
包含要传递的值的查询字符串与我们通过问号传递参数的页面的地址分开(? ),



传递的每个参数都用和号(&)与下一个参数分开,每个字段的名称与字段的值除以等号(=),



并且字段值中的任何非字母数字字符都是"转义"(例如,空格由%20替换)。 



有两篇文章供你参考。



http://office.microsoft.com/en-in/sharepoint-server-help/connect-a-query-string-url-filter-web-part-to-another-web-part- HA010250999.aspx



http://sympmarc.com/2009/10/20/passing-a-source-parameter-on-the-query-string-with-multiple-other-parameters/



Hi 

when i try to pass two or more parameter in query string url filter webpart but in advance filter options send all values is disabled. am able to select send only the first value. 

but in my condition i have to send Url.aspx?fieldvalue=Value1&Fieldvalue2=value2

Please help me how to acheive this.

解决方案

Here you go

Yes, we can construct the query string to include multiple values.

The query string containing the values to be passed is separated from the address of the page that we are passing the parameters to by a question mark (?),

each parameter being passed is separated from the next by an ampersand (&), the name of each field is separated from the value of the field by an equals sign (=),

and any non alphanumeric characters in the field values is "escaped" (eg. spaces are replaced by %20). 

There are two articles for your reference.

http://office.microsoft.com/en-in/sharepoint-server-help/connect-a-query-string-url-filter-web-part-to-another-web-part-HA010250999.aspx

http://sympmarc.com/2009/10/20/passing-a-source-parameter-on-the-query-string-with-multiple-other-parameters/


这篇关于SharePoint查询字符串URL过滤两个或多个参数的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆