Application_Start in global.asax

This forum is only for questions or discussions about working with the mojoPortal source code in Visual Studio, obtaining the source code from the repository, developing custom features, etc. If your question is not along these lines this is not the right forum. Please try to post your question in the appropriate forum.

Please do not post questions about design, CSS, or skinning here. Use the Help With Skins Forum for those questions.

This forum is for discussing mojoPortal development

This forum is only for questions or discussions about working with the mojoPortal source code in Visual Studio, obtaining the source code from the repository, developing custom features, etc. If your question is not along these lines this is not the right forum. Please try to post your question in the appropriate forum.

You can monitor commits to the repository from this page. We also recommend developers to subscribe to email notifications in the developer forum as occasionally important things are announced.

Before posting questions here you might want to review the developer documentation.

Do not post questions about design, CSS, or skinning here. Use the Help With Skins Forum for those questions.
This thread is closed to new posts. You must sign in to post in the forums.
9/23/2009 8:57:09 AM
Gravatar
Total Posts 9

Application_Start in global.asax

If I create Application_Start in the global.asax, will it be executed or ignored?
I am wanting to extend my mojoportal app to utilize "Dynamic Data" (part of .Net 3.5 SP1).
The main point of failure I have run into with integrating use of Dynamic Data into some other apps has been when there has been an "Inherits=" in the global.asax AND the app was not coded to utilize code within 'Application_Start' in the global.asax.
Would I need to modify mojoportal source to get something added to 'Application_Start' ?

9/23/2009 12:42:51 PM
Gravatar
Total Posts 18439

Re: Application_Start in global.asax

You should not modify any mojoPortal code.

Do some searching about implementing a custom HttpModule. You can compile it into your own dll and configure it in the httpmodules section of Web.config. From inside an HttpModule you can respond to Application_Start.

There are examples of various custom HttpModules in the Web/Components folder of the source code includin CultureHelpHttpModule.cs, AuthHandlerHttpModule, BannedIPBlockingHttpModule.cs

You would put yours in a custom class library project. You can discover how the above modules are plugged in by studying the Web.config and learn how to plug yours in similarly.

Hope it helps,

Joe

9/23/2009 5:02:24 PM
Gravatar
Total Posts 9

Re: Application_Start in global.asax

Joe,

Thank you VERY much for taking the time to answer a question that is admittedly not MojoPortal-specific.

VERY thankfully,
Gary

You must sign in to post in the forums. This thread is closed to new posts.