通过Sharepoint网站页面将参数传递到Web部件 [英] Passing parameters through sharepoint sitepage to web part
本文介绍了通过Sharepoint网站页面将参数传递到Web部件的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
因此,我正在构建由Web部件组成的共享点页面.我需要将参数发送到页面,然后将其进一步发送到这些Web部件,而且我不知道如何执行此操作...
So I'm building sharepoint pages that are consisted of web parts. I need to send parameter to a page, and that send it further to these web parts, and I have no idea how to do this...
推荐答案
OOTB方法:
您可以使用查询字符串过滤器Web部件捕获查询字符串值并将其传递给Web部件.
You can use query string filter web part to capture the query string values and pass it to the web parts.
Custom WebParts:
您可以使用以下代码段捕获查询字符串.
You can use the following code snippet to capture the query string.
Request.QueryString["param"]
这篇关于通过Sharepoint网站页面将参数传递到Web部件的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文