I have a custom editform for my library which I generated using SharePoint Designer.
This custom form also includes the Save button on the form itself along with the the ribbon save button. I need to add additional functionality to my save.
The button on the form is a SharePoint:SaveButton webcontrol...
< SharePoint:SaveButton runat="server"/>
I can override this adding my own functionality like this
public class CustomSaveButton : SaveButton
protected override void OnInit(EventArgs e)
protected override bool SaveItem()
// Do the custom code here..
After this I can add back my custom save to the form.. like below
<%@Assembly Name="CustomOverrideControls, Version=126.96.36.199, Culture=neutral, PublicKeyToken=uhdsksuew9832iwe82" %>
<CustomOverrideControls:CustomSaveButton TemplateName="SaveButtonNew" runat="server"/>
All this is fine.. but what if the user skips this button and clicks on the 'Save' button on the Ribbon.. my custom code will not be executed :(
Question is how can I override the save functionality of the Ribbon Save button ?
Any help appreciated.
View Complete Post