Take the 2-minute tour ×
SharePoint Stack Exchange is a question and answer site for SharePoint enthusiasts. It's 100% free, no registration required.

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?

Ie: http://www.c-sharpcorner.com/UploadFile/DipalChoksi/4035/ http://msdn.microsoft.com/en-us/library/dd584164(office.11).aspx

Many thanks,

KS

share|improve this question
add comment

1 Answer 1

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 asp.net usercontrol and deploy that to a sharepoint site? Thx. –  Perplexed Apr 18 '11 at 20:52
1  
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
add comment

Your Answer

 
discard

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.