Passing parameters through sharepoint sitepage to web part

十年热恋 提交于 2019-12-10 20:57:54

问题


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...


回答1:


OOTB way:

You can use query string filter web part to capture the query string values and pass it to the web parts.

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

Custom WebParts:

You can use the following code snippet to capture the query string.

Request.QueryString["param"]


来源:https://stackoverflow.com/questions/7482143/passing-parameters-through-sharepoint-sitepage-to-web-part

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!