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...
Asked
Active
Viewed 3.5k times
1 Answers
2
OOTB way:
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"]

Madhur Ahuja
- 22,211
- 14
- 71
- 124
-
I'm using first way, and after I add Query String (URL) Filter and hover over "Edit/Connections/Send Filter Values To" I get "The connection type "send filter values to" is not compatible with any other web parts on the page". I don't know how to connect these web parts. – Frane Novakovic Sep 21 '11 at 08:12
-
What are the other web parts ? – Madhur Ahuja Sep 21 '11 at 08:27
-
You need to make it a consumer web part, see http://msdn.microsoft.com/en-us/library/bb460810(v=office.12).aspx – Madhur Ahuja Sep 21 '11 at 09:54
-
I did it! Followed this article: http://blog.beckybertram.com/Lists/Posts/Post.aspx?ID=118. Thanks for your help Madhur! – Frane Novakovic Sep 22 '11 at 13:01
-
@FraneNovakovic, can you share how you achieved it? The blog you mentioned now is locked by password. – lovechillcool Nov 18 '20 at 08:21