Skip to main content
3 of 7
added 19 characters in body

SDL on save component check the values in c#

Hello Friends i am trying to check or print the component values after save event triggered.

I want to check on each component save. User added the www.blahblh.com url or not then take action as per url I am getting.

public void ComponentSaveAction(Component subject, SaveEventArgs args, EventPhases phase)
        {
               Component comp = subject;
                
                string str = comp.Content.Value; // in str values getting empty
        }

Thanks in advance :)