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.0DotNetNuke internal Events and registering EventHandlersDotNetNuke internal Events and registering EventHandlers
Previous
 
Next
New Post
2/4/2008 10:05 AM
 

I've been developing modules for quite some time in DotNetNuke, and I have run into instances where some of our modules and providers occaisionally need to be able to subscribe to certain DotNetNuke "events" as they happen, so that we can execute some code when the event happens.  To date, I haven't been able to find any documentation or examples on how this can be achieved effectively.

As DotNetNuke team members begin to develop the next version (5.0), I think that they should consider incorporating "events" and eventHandler subscription into the framework.  Let me explain by example.  In one use-case, our module needs to be able to "know" when a new user registers on the portal.  It would be nice if DotNetNuke exposed an event called "evtNewUserRegistered", and passed the userInfo object as the context.  This way, our module could register an eventHandler of sorts that could subscribe to this event, and perform some code execution everytime a user registered on the site.  Another example use-case would be when a user adds a page to the site, we might want to subscribe to this "event", and the event should pass the Page object as the context so that we could execute some code during this event.  This type of model builds on the typical Microsoft event handling that already exists in .NET.

Has anyone else ever run into this type of use-case before?
Do you think DotNetNuke should incorporate such an extension of the framework?

Thanks!

-- Will Gillen

 
New Post
2/4/2008 10:53 AM
 

FYI,  I posed a "New Feature Request" on the DotNetNuke support site, if you want to comment:

http://support.dotnetnuke.com/issue/ViewIssue.aspx?id=7032&PROJID=23

 
Previous
 
Next
HomeHomeArchived Discus...Archived Discus...Developing Under Previous Versions of .NETDeveloping Under Previous Versions of .NETASP.Net 2.0ASP.Net 2.0DotNetNuke internal Events and registering EventHandlersDotNetNuke internal Events and registering EventHandlers


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