Products

Solutions

Resources

Partners

Community

Blog

About

QA

Ideas Test

New Community Website

Ordinarily, you'd be at the right spot, but we've recently launched a brand new community website... For the community, by the community.

Yay... Take Me to the Community!

Welcome to the DNN Community Forums, your preferred source of online community support for all things related to DNN.
In order to participate you must be a registered DNNizen

HomeHomeOur CommunityOur CommunityGeneral Discuss...General Discuss...How do I add custom code to the registration processHow do I add custom code to the registration process
Previous
 
Next
New Post
10/27/2010 5:34 PM
 
I’m looking to add a bit of custom code during the registration process.  Specifically, when a user clicks ‘update’ on the Manage Profile (User Account page) I would like to capture and record the profile values to an external webservice.   This needs to be done in real-time, so a schedule task is not a good option for my solution.  In addition, I would prefer NOT to alter any core DNN, having to re-add my changes for every revision update. 

If it helps describing when the code should execute, I have found the event in the Profile object (DesktopModules\Admin\Security\Profile.ascx.vDesktopModules\Admin\Security\Profile.ascx.vb) It is around this time where I need to capture and record the updated profile info.      

Private Sub cmdUpdate_Click(ByVal sender As Object, ByVal e As System.EventArgs) Handles cmdUpdate.Click

 

            If IsValid Then

                Dim properties As ProfilePropertyDefinitionCollection = CType(ProfileProperties.DataSource, ProfilePropertyDefinitionCollection)

 

                'Update User's profile

                User = ProfileController.UpdateUserProfile(User, properties)

 

                '***Add My Custom Code here ****

                OnProfileUpdated(EventArgs.Empty)

                OnProfileUpdateCompleted(EventArgs.Empty)

            End If

 

        End Sub

What options do I have?  Is there some way that I can wire up to the “OnProfileUpdated” event with a module or external process?   I need advise

Thanks,
Paul
 
Previous
 
Next
HomeHomeOur CommunityOur CommunityGeneral Discuss...General Discuss...How do I add custom code to the registration processHow do I add custom code to the registration process


These Forums are dedicated to discussion of DNN Platform and Evoq Solutions.

For the benefit of the community and to protect the integrity of the ecosystem, please observe the following posting guidelines:

  1. No Advertising. This includes promotion of commercial and non-commercial products or services which are not directly related to DNN.
  2. No vendor trolling / poaching. If someone posts about a vendor issue, allow the vendor or other customers to respond. Any post that looks like trolling / poaching will be removed.
  3. Discussion or promotion of DNN Platform product releases under a different brand name are strictly prohibited.
  4. No Flaming or Trolling.
  5. No Profanity, Racism, or Prejudice.
  6. Site Moderators have the final word on approving / removing a thread or post or comment.
  7. English language posting only, please.
What is Liquid Content?
Find Out
What is Liquid Content?
Find Out
What is Liquid Content?
Find Out