How to fire OnClick() Event in Sharepoint page ?
-
Thursday, October 30, 2008 1:24 PMIn a Edit item page and new item page i want to fire Onclick Event of the Ok button ....any idea?
- Edited by Gopi Ramaya Thursday, October 30, 2008 1:25 PM
All Replies
-
Thursday, October 30, 2008 7:45 PMYou could write an event handler for this. SharePoint fires events when items are added/updated/deleted etc. Custom Event Handlers let you write managed code that will run for these events and let you perform additional actions.
Brian Wilson has a great 3 part blog post starting at http://blogs.msdn.com/brianwilson/archive/2007/03/05/part-1-event-handlers-everything-you-need-to-know-about-microsoft-office-sharepoint-portal-server-moss-event-handlers.aspx that got me started with writing my own event handlers. Have a read and that should get you going in the right direction.
Brian Farnhill
Microsoft Certified Application Developer
http://pointstoshare.spaces.live.com -
Friday, October 31, 2008 4:03 AMhi i had gone through your document but could you please give me a sample code to put it in sharepoint designer.....
-
Friday, October 31, 2008 4:17 AM
You can also override the Ok Button in the Item Template.
http://dotnetslackers.com/community/blogs/murugangs/archive/2007/05/28/How-to-override-or-customize-the-Sharepoint-SaveButton_3F00_.aspx
Hope this helps!
Thanks
Prasad
- Marked As Answer by Michael Washam - MSFT Thursday, November 06, 2008 2:16 PM
-
Sunday, November 02, 2008 7:34 PMThe event handler is something that is put together in visual studio, then compiled and deployed to the web server as a DLL, not anything to do with SharePoint designer. If you are looking for a solution in SPD thenwhat GPK2005 suggested might be an option for you
Brian Farnhill
Microsoft Certified Application Developer
http://pointstoshare.spaces.live.com

