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

HomeHomeUsing DNN Platf...Using DNN Platf...Administration ...Administration ...Customizing Global.asaxCustomizing Global.asax
Previous
 
Next
New Post
1/10/2007 8:27 PM
 
Is there a way to have Global.asax execute my own custom code without actually modifying the standard Global.asax.vb file? If not, is there interest in a way to do this if I implemented it and submitted my implementation for inclusion?

I have a need to have the Application_Start and Application_BeginRequest events execute some of my own code. I would like to do this without modifying the standard Global.asax.vb file because any time I customize a DNN source file it adds more burden to the upgrade process when a new version comes out. So I prefer not to do customizations. I haven't found any way to subclass the Global class to extend it that way. Perhaps this is possible and I'm missing something.

I have a couple of ideas for allowing customization without modifying the standard code (well, once it's modified to allow that!) I'd need to refine them. I'd definitely be willing to share the implementation. I think this is something a lot of developers would benefit from.

Thoughts?
 
New Post
1/10/2007 8:33 PM
 

I would suggest using a httpmodule instead, that way you only have to drop your custom file into any updates, and add your custom node to the web.config. http://www.devx.com/dotnet/Article/6962/0/page/4 has a code snippet that should get you started.

Cathal


Buy the new Professional DNN7: Open Source .NET CMS Platform book Amazon US
 
New Post
9/8/2007 12:38 AM
 

Hello, lloydkurth

I met similar requirement in this post.

Have you find a solution?

If you have, please give some help.

Thanks,

Ricky.

 
New Post
9/8/2007 12:44 AM
 

Hi, cathal.

I cannot find an event trap to hook Application_Start() from HttpApplication

 public void Init(HttpApplication context)
        {
            //...
        }

Why?

Regards,

Ricky.

 
New Post
9/8/2007 9:01 AM
 

you just need to add it in yourself. The reason it doesn't exist currently is that we use httpmodules for various tasks and hook that event up in them (this allows us to support alternative providers for items such as membership).

Cathal


Buy the new Professional DNN7: Open Source .NET CMS Platform book Amazon US
 
Previous
 
Next
HomeHomeUsing DNN Platf...Using DNN Platf...Administration ...Administration ...Customizing Global.asaxCustomizing Global.asax


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