vendredi 30 janvier 2015

Add Custom Web Part to newly created page programmatically



I created a custom web part for SharePoint 2013 and I would like it to be added to a blank page that is created for it.


I looked it up and found out, that the I can add an Event Receiver to the Feature, so I added one, but the event receiver is never fired.


The event that I tried was the FeatureActivated and FeatureInstalled .


Do I have to set some kind of special properties for the project to make the event handlers work?


Is there any other way to create a blank sharepoint web page and add a custom web part to it programmatically?


I used this tutorial : Create a Web part page with web part








0 commentaires:

Enregistrer un commentaire