3

When developing web parts in SharePoint can I inherit from the existing web parts and override their methods?

Or do I always need to start from scratch.

Many Thanks

78lro
  • 1,790
  • 7
  • 37
  • 63

2 Answers2

1

If they are not sealed, you can inherit from them. In practise, It might work or not depending on how the web part you want to extend.

erikkallen
  • 33,800
  • 13
  • 85
  • 120
0

Most (all?) OTB parts are sealed.

A new toolbar with icon/no buttons sounds more like a design solution. Place the topnav placeholder in a invisible panel at the bottom (so page doesn't crash) and modify the rest visually (css+firebug) . Assuming I am not misunderstanding what you mean.

Its pretty easy to get started with webparts, http://blah.winsmarts.com//2006/05/14/writing-custom-webparts-for-sharepoint-2007.aspx should show you how. From there you should be able to write an RSS reader easily.

savageguy
  • 1,535
  • 2
  • 13
  • 18