SharePoint Stack Exchange is a question and answer site for SharePoint enthusiasts. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

We are creating a ClientWebPart that we want to be present on the Default Display Form for items on a custom list view that's part of our application.

I can't work out how to pass the Id of the selected ListItem to the WebPart so that it can adjust it's behaviour. I'm assuming it can be passed with the URL to the WebPart.

I've considered using properties on the WebPart but they seem to be hard coded when the WebPart is placed on the form.

The built in controls seem to allow this. We can display a list of related ListItems to this ListItem. That seems to use something called "Connections" which I've been unable to re-create.

share|improve this question
This walkthrough might help on creating connected webparts... – BlueBird Sep 3 '13 at 19:18
Hi @BlueBird, the only problem is that's for 2010 and doesn't fit in with SharePoint 2013's new App Model – Matthew Steeples Sep 3 '13 at 21:02
@MatthewSteeples, Can you use SharePoint 2010: Get Selected Items from List View in Visual Web Part.. I am not sure if it will work with SharePoint 2013's App Model – Arsalan Adam Khatri Sep 4 '13 at 7:00

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Browse other questions tagged or ask your own question.