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

HomeHomeArchived Discus...Archived Discus...Developing Under Previous Versions of .NETDeveloping Under Previous Versions of .NETASP.Net 2.0ASP.Net 2.0Event after registrationEvent after registration
Previous
 
Next
New Post
3/28/2008 9:19 AM
 

Hi,

I would like to run an event after the registration of a new user.

Is anybody know how do to that?

Regards
Soft

 
New Post
3/28/2008 9:52 AM
 

While there isn’t a pluggable way to easily run an event you could take one of several approaches. The first could be a scheduled job to look in the user tables for new entries (daily) and perform some secondary action.  The other is a bit more complex but depending on what it is that you are going to do when you find new registrations, it may make more sense. You can implement your own Membership Provider and by replacing the AspNetMembershipProvider :CreateUser() method with your own.  Again, not knowing specifically what you intend to do when a new user is registered, the approach could vary.

Hope this helps

 


Henry Kenuam
Engage Software
St. Louis, MO
314.966.4000



The leading provider of DotNetNuke support, training and custom module development
 
New Post
3/28/2008 10:18 AM
 

Francis Lapierre wrote

Hi,

I would like to run an event after the registration of a new user.

Is anybody know how do to that?

Regards
Soft

What sort of "event" are you after?  If its just to run an SQL statement then Enterprise Forms may be able to satisfy your requirments.   They have a thing called workflow tasks which you can call one after another.  There are a number of default tasks that comes with the installation.  For user registration there is the Register User task, and for SQL there is the Execute SQL task.  You could use these two tasks in sequence to achieve what you require.

If you want run .NET code you may  be able to create your own task and plug into Enterprise Forms.

 
New Post
3/28/2008 10:54 AM
 

Thanks for your answers.

Basically what I would like to do it’s add the email of each new user in an external database.

The idea to do synchronization is good idea, but I found it a lot simpler if I can run an event when the user registers.

 
New Post
3/28/2008 11:08 AM
 

Assuming the external database is in the same SQL Server of that of the DNN database, you should be able to accomplish with what I mentioned earlier.

Have you thought about using a trigger on the users table to perform the same thing?

 

 
Previous
 
Next
HomeHomeArchived Discus...Archived Discus...Developing Under Previous Versions of .NETDeveloping Under Previous Versions of .NETASP.Net 2.0ASP.Net 2.0Event after registrationEvent after registration


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