Press Ctrl / CMD + C to copy this to your clipboard.
This post will be reported to the moderators as potential spam to be looked at
I need khow member's deleted Email.
I tried to do something like this:
public class RegisterEvents : IApplicationEventHandler { public void OnApplicationInitialized(UmbracoApplicationBase httpApplication, ApplicationContext applicationContext) { } public void OnApplicationStarting(UmbracoApplicationBase httpApplication, ApplicationContext applicationContext) { Member.BeforeDelete += new Member.DeleteEventHandler( Member_BeforeDelete); } public void OnApplicationStarted(UmbracoApplicationBase httpApplication, ApplicationContext applicationContext) { } void Member_BeforeDelete(Member sender, DeleteEventArgs e) { //Need get email } }
But look like Member_BeforeDelete handler wasn't being called.(For check I put breakpoints in this handler). Same situation for Member.AfterDelete.
How can I get member's deleted Email?
Thanks.
Hi when you say you need to know members delete email, what do you mean by this?
Thanks,
Charlie
Charles Afford, sorry for my late answer.
In general I need all information about user which was deleted(id, email ...etc.).
But handler, which I described, doesn't work. Please give me advice, how I must rewrite this handler.
Sequence of steps which I tried to do:
Did you ever manage to fix this? I can't get the handlers to fire either.
Hi Bex,
Take a look at: http://our.umbraco.org/forum/developers/api-questions/53639-Implement-custom-logic-for-MemberBeforeDelete-Or-MemberAfterDelete
Hope this helps :).
is working on a reply...
Write your reply to:
Upload image
Image will be uploaded when post is submitted
Implement custom logic for Member.BeforeDelete Or Member.AfterDelete
I need khow member's deleted Email.
I tried to do something like this:
But look like Member_BeforeDelete handler wasn't being called.(For check I put breakpoints in this handler). Same situation for Member.AfterDelete.
How can I get member's deleted Email?
Thanks.
Hi when you say you need to know members delete email, what do you mean by this?
Thanks,
Charlie
Charles Afford, sorry for my late answer.
In general I need all information about user which was deleted(id, email ...etc.).
But handler, which I described, doesn't work. Please give me advice, how I must rewrite this handler.
Sequence of steps which I tried to do:
Thanks.
Did you ever manage to fix this? I can't get the handlers to fire either.
Hi Bex,
Take a look at: http://our.umbraco.org/forum/developers/api-questions/53639-Implement-custom-logic-for-MemberBeforeDelete-Or-MemberAfterDelete
Hope this helps :).
Charlie
is working on a reply...