Skip to main content
5 of 7
deleted 15 characters in body
Velmurugan
  • 8.2k
  • 2
  • 15
  • 27

SDL on save component check the values in c#

Hello Friends I am trying to check or print the component values after the saving event is 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
        }