Portal Engine Questions on portal engine and web parts.
Version 7.x > Portal Engine > EventHandler OnBeforeCommentSaved View modes: 
User avatar
Member
Member
hitesh - 4/27/2013 2:04:02 AM
   
EventHandler OnBeforeCommentSaved
Greetings everyone,
Can anyone tell me what exactly OnBeforeCommentSaved eventhandler does in BlogCommentEdit web Control? How are these event handlers can be implemented for our use?
If they serve a major purpose then I'd want to implement on my TaskComment user control?
I think these events might be performing some checks on click of "Add" button. I want to know what are these checks? Plz show me the path master.

Thanks

User avatar
Member
Member
kentico_sandroj - 4/27/2013 1:42:37 PM
   
RE:EventHandler OnBeforeCommentSaved
Hi,

The linked documentation provides examples and explanations for event handling.

Just as an example, OnBeforeCommentSaved allows you to interrupt the default process and run custom code before the comment is saved. Lets say you wanted to convert the text to all caps - once the user presses save you call this event which specifies that your conversion method should be ran before the text is saved.

Please review the documentation and let us know if you have any additional questions.

Thanks,
Sandro