Forum


HomeHomePremiumPremiumDevelopmentDevelopmentCreate entry in separate table when user registersCreate entry in separate table when user registers
Previous
 
Next
New Post
3/29/2014 12:37 PM
 

Hi,

I've seen a few commercial modules and some other links to add fields to the user profile but I'd like to pickup the event in code when a User registers so as I can add an entry into a separate table for them. I was thinking it must be possible as modules like the YAF forum must have a separate profile table where an entry is added when the user registers but I can't find anything on this.

Thanks,

Tim.

 
New Post
3/30/2014 12:11 PM
 

Tim,

If you look in your DNN Environment at \DesktopModules\Admin\Security, you will find two files: Register.ascx and Register.ascx.cs.  This code is the default registration view that users see. This usercontrol and codebehind is dynamically compiled so if you make changes (like raising a custom event), it will get recompiled by asp.net automatically.

That being said, I wouldn't recommend customizing these files because DNN upgrades will become more complex.  But you can develop a new module and use this code as a starting point.  Then you can place your custom registration module onto a new page and set that new page to be the Registration page in the Site Settings.

Good luck!

Scott

 
Previous
 
Next
HomeHomePremiumPremiumDevelopmentDevelopmentCreate entry in separate table when user registersCreate entry in separate table when user registers



Try FREE
30 days money back guaranteed