Specify Start Module

Topics: User Forum
Jan 22, 2007 at 7:55 PM
Suppose you have 10-15 modules in your solution. Is there a way to specify a start module?

Jan 23, 2007 at 1:46 AM
What do you mean by a 'start module'? The module that gets loaded first?
If this is what you mean, with current implementation of the block the module load order is defined by the modules' dependencies. Therefore, if Module A has a dependency on Module B and Module B has a dependency on Module C, the load order will be:

1. Module C
2. Module B
3. Module A

Did this help?

Mariano Szklanny
Jan 23, 2007 at 1:06 PM
Yes, that is correct. I want to be able to specify a specific module that should start up when the application starts up.

Is there way to specify this without having a dependency chain amongst modules?

Also, from a design perspective I might not be thinking correctly on how to implement this, so any clarification will be welcome.

Jan 23, 2007 at 1:31 PM
Do you mean the first page a user sees when they go to your application should be in a module you specify?

Or do you mean you want one module to load and initialise before all the rest?

For the first; use a Response.Redirect on Default.aspx - or many other options.

For the second; this sounds as though it is heading towards a "hack" to me... modules are meant to be fairly independent, unless specified using dependencies... so why does one need to load first?

I suspect I've misunderstood - so feel free to correct me!!