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 4909 posts 12266 karma points MVP 6x 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!

  • This forum is in read-only mode while we transition to the new forum.

    You can continue this topic on the new forum by tapping the "Continue discussion" link below.

Please Sign in or register to post replies