SharePoint Stack Exchange is a question and answer site for SharePoint enthusiasts. It's 100% free, no registration required.

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

Although I've been doing a lot of sharepoint 2010 branding lately, programming webparts is something completely new for me.

  1. I need to put together three webparts.

  2. I want to create a Webpart1 (Dropdownlist), Webpart2 (Checkbox) and Webpart3 (GridView)

  3. My grid in webpart3 should display data based on filter values from the other two webparts.

Do I have to implement connectable webparts to do this?


Many thanks,


share|improve this question
up vote 3 down vote accepted

Yes, you should make the Web Parts connectable - if you really want them as three Web Parts.

Why can't you make one Web Part containing all three controls?

share|improve this answer
Because I guess my boss wants each one of them to be re-usable.thx. – Perplexed Apr 18 '11 at 20:02
to increase reusability you could go for user controls and a virtual web part. – Anders Rask Apr 18 '11 at 20:38
Do you mean that I can just create a standard usercontrol and deploy that to a sharepoint site? Thx. – Perplexed Apr 18 '11 at 20:52
You would deploy the user control to %SharePointRoot%/CONTROLTEMPLATES and then reuse it whether you want it on your masterpage or loaded from WebPart code using LoadControl("path/name.ascx"). – Alexey Krasheninnikov Apr 19 '11 at 9:15
What project template should I choose in VS if I wanted to create a re-usable webpart that can be used in Sharepoint and in a Asp.Net website? Hmmm, just a UserControl? Thx. – Perplexed Apr 19 '11 at 17:59

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.