Dot Net Sparks C#.NET,ASP.NET,ADO.NET,LINQ,AJAX,JavaScript,SharePoint

/ 0

Adding custom action to Personal Actions menu of SharePoint 2010

This example shows how to create a custom action menu item to PersonalActions menu. In order to create custom action menu item we need an empty element and a feature.


Now, let’s us start step by step.
Create an Empty SharePoint Project in Visual Studio 2010. Name the project as “MyCustomAction_PersonalActions”.



Now, in the SharePoint Customization Wizard, type the url of the SharePoint site and Click Validate. After connecting successfully to the SharePoint site, select Deploy as a Farm Solution option and Click Finish.



Now, right click on the project in the solution explorer and select Add -> New Item.



In the Add New Item dialog box select Empty Element and name it as “MyCustomActionElement” and click Add.



This adds the empty element and a feature to the project. Now, in the Elements.xml add the following code

  
    
  

That’s it. Now you can deploy the solution and test it.

Comments (0)

Leave a comment