[SharePoint 2010 Developpement] Tips for creating programmatically webpart, which class should you use

jeudi 1 mars 2012

You want to create a webpart for SharePoint 2010 but you don’t know which class to use ?
I was using those way :
  • Search on google and find examples
  • Randomly type in Visual studio the webpart name, example : content, and it would propose me the classes ContentByQuery…
But there is a more simple way :
  • Create the webpart by interface in SharePoint 2010
  • Export the .webpart file from the webpartimage
This will export a .webpart
  • Now edit it with a text editor
You could see the full namespace used, and so the ClassName : ContentByQueryWebpart.

Hope that helped,

Aucun commentaire:



Jeff ANGAMA, is a business / technique consultant around SharePoint 2013 technologies. - More Infos Here -

Rechercher dans ce blog

Follow by Email

Where Users are from ?