Copied to clipboard

Flag this post as spam?

This post will be reported to the moderators as potential spam to be looked at


  • pnr 131 posts 226 karma points
    Jul 06, 2010 @ 15:26
    pnr
    0

    How to catch save event in a umbraco usercontrol wrapper

    How can i detected when the save or save and publish button in Umbraco Admin is clicked, in a usercontrol wrapper?

    Thanks in advance!

  • Jeroen Breuer 4908 posts 12265 karma points MVP 5x admin c-trib
    Jul 06, 2010 @ 15:33
    Jeroen Breuer
    0

    Your usercontrol needs to inherit from umbraco.editorControls. userControlGrapper.IUsercontrolDataEditor. Because of this you have the following property:

    public object value
            {
                get
                {
                    return TxtNodeTitle.Text;
                }
                set
                {
                    SetTextBox(value.ToString());
                }
            }

    If you hit the save button the get property get's called. The set property get's called when the page is being loaded.

    Jeroen

  • pnr 131 posts 226 karma points
    Jul 06, 2010 @ 15:37
    pnr
    0

    Thanks very much!

Please Sign in or register to post replies

Write your reply to:

Draft