Wednesday, November 3, 2010

How to override or customize the Sharepoint SaveButton? - murugangs

How to override or customize the Sharepoint SaveButton? - murugangs: "How to override or customize the Sharepoint SaveButton?
The SDK documentation explains here [1] how to override the ListFiledIterator to a Document Library by changing the template. I need to change the Sharepoint SaveButton so that I can do some additional task after or before saving.
These are the steps I followed to do this:
Create a custom type inheriting from Sharepoint SaveButton.
Override the protected SaveItem method, and do the custom code which you want.
Create a Control Template, which overrides the default Sharepoint default implementation (here was I spent lots of my time to figure it out to achieve this)"

0 comments: