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 am trying to create a custom webpart which will act as a consumer webpart to the SharePoint List Filter WebPart. I have not been able to make this code work, the send filter values to option is disabled on the List filter web part. any ideas?

namespace PageViewerWithConnections.CustomPageViewer
    public class CustomPageViewer : System.Web.UI.WebControls.WebParts.WebPart
        IFilterValues _filterVals;

        public void ConsumeFilter(IFilterValues filterValues)
            _filterVals = filterValues;

        protected override void CreateChildControls()

share|improve this question

You've not added any parameters that you support to filterValues. See the example in Walkthrough: Writing a Simple Filter Consumer Web Part Sample specifically step 1 and SetConnectionInterface

share|improve this answer
Thanks Ryan, I am now getting the dreaded "Unhandled exception was thrown by the sandboxed code wrapper's Execute method in the partial trust app domain: An unexpected error has occurred. Show Error Details " error. I asked another question here… – i.jk Mar 8 '11 at 19:07
You can't do web part connections in the sandbox IIRC. – Ryan Mar 8 '11 at 21:09

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.