Portal Engine Questions on portal engine and web parts.
Version 5.x > Portal Engine > Custom Event Handling in Registration View modes: 
User avatar
Member
Member
Armysniper89 - 10/24/2010 11:18:02 AM
   
Custom Event Handling in Registration
I would like to be able to have events trigger that sign users up for our newsletter in ConstantContact, and more when a user finishes a registration. How can I do this?

User avatar
Kentico Consulting
Kentico Consulting
kentico_borisp - 10/25/2010 9:31:20 AM
   
RE:Custom Event Handling in Registration
Hello,

Could you please describe your requirement in more detail? What is ConstantContact?

Best regards,
Boris Pocatko

User avatar
Member
Member
Armysniper89 - 10/25/2010 11:27:55 AM
   
RE:Custom Event Handling in Registration
Every time a user registers for my site, they have the option during registration of clicking on some check boxes that signify which newsletters of my company they want to subscribe for. To avoid spam hitting my company email domain, we use Constant Contact which is an email distributor, newletter distributor, email marketing service...that we have used in the past. They have an ASP.NET compliant API to call them and setup users for the newsletter in their system. Ideally, once they are created in Kentico's user registration, I would then send the information to ConstantContact to register them for the newsletters they have chosen (if any). I am using a CustomRegistration form and the Custom Registration web part.

User avatar
Kentico Consulting
Kentico Consulting
kentico_borisp - 10/26/2010 12:17:48 PM
   
RE:Custom Event Handling in Registration
Hello,

Regrettably, this is not a Kentico specific problem. I can point you to the files for the Custom Registration webpart or how to get the subscribers, but I am not able to tell you how to send the data to ConstantContact.

Best regards,
Boris Pocatko

User avatar
Member
Member
Armysniper89 - 10/26/2010 12:23:20 PM
   
RE:Custom Event Handling in Registration
I am not asking how to do that. I know how to do the API stuff. What I need is an event handler that is triggered when a user registers with the system. If it were my own custom code for registration, I could handle it when a user has completed creating a user in my system. How can I do that here? Could I clone the CustomRegistration WebPart and use that in code behind?

User avatar
Kentico Developer
Kentico Developer
kentico_helenag - 11/1/2010 7:29:41 AM
   
RE:Custom Event Handling in Registration
Hello,


you could clone the CustomRegistration web part and add the custom code to code behind as you mentioned or use Custom data handler. You can find a sample code on that page, too.


Best regards,
Helena Grulichova