Global.asax inheritance

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

Does the Global.asax from a parent application run for a child application? Is there a way to configure this to happen?

Scenario:

Site A has a parent: Site B

User goes from a page in site A to a page in site B

In session_end, I would like to destroy a cookie.
 
You'll need to have the .dll that contains the parent app's Global.asax
code behind avialable in the path of your child app.

Then in your child app global.asax you declare:
<%@ Application Inherits="Your fully qualified class name to your parent
global.asax" %>

You can probably copy the .dll to your child app's /bin directory and
the child app will find it since that's configured by default to be a
lookup path for dlls.
Shan Plourde
 
Thanks, I will try it.

Shan Plourde said:
You'll need to have the .dll that contains the parent app's Global.asax
code behind avialable in the path of your child app.

Then in your child app global.asax you declare:
<%@ Application Inherits="Your fully qualified class name to your parent
global.asax" %>

You can probably copy the .dll to your child app's /bin directory and
the child app will find it since that's configured by default to be a
lookup path for dlls.
Shan Plourde
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top