Copied to clipboard

Flag this post as spam?

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


  • Eddie Foreman 215 posts 288 karma points
    Aug 23, 2010 @ 10:35
    Eddie Foreman
    0

    BeforeSave - Update member values without reload nodes

    Hi All

    Just starting to use events with Umbraco v 4.0.4.2.  As a test I've created a simple member BeforeSave event, which works. But to see the updated fileds, I need to click on the member node to reload the member info.  Is it possible in this version of Umbraco to reload from within the BeforeSave method?

        public class SendMemberEmail: ApplicationBase
    {
    public SendMemberEmail() {
    Member.BeforeSave += new Member.SaveEventHandler(Member_BeforeSave);
    }

    void Member_BeforeSave(Member sender, umbraco.cms.businesslogic.SaveEventArgs e)
    {
    sender.getProperty("test").Value = "Hello Umbraco " + DateTime.Now.ToString();
    sender.XmlGenerate(new System.Xml.XmlDocument());

    }

    }

    Thanks

    Eddie

Please Sign in or register to post replies

Write your reply to:

Draft