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

I'm using a custom webpart to display a list item. The item id is passed to this webpart through a query string. I have added this webpart and a noteboard webpart on a page. I would like to capture the noteboard comments entered against the list item being viewed. Is it possible to display the noteboard comments based on the itemid passed in the query string?

Currently I can see comments entered for other list items too and not filtered based on query string.


share|improve this question
The noteboard webpart stores the comment based on the page url. It does consider the query string parameters. So my comments about query string parameters not being considered is not correct. Thanks – user11081 Oct 2 '12 at 9:59

I don't think it supports filtering, but you could do this with JavaScript if you try to disable paging and hide/show elements based on query string, like this (using hash for simplicity):

$('.ms-socialCommentItem:has(.socialcomment-contents:contains("' + 
    window.location.hash.slice(1) + '"))').show();
share|improve this answer
Here is an example using input element: – eirikb Sep 27 '12 at 6:01

Your Answer


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

Not the answer you're looking for? Browse other questions tagged or ask your own question.