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