Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Multi level Global.asax inheritance
Message
 
 
À
24/10/2008 02:22:14
Information générale
Forum:
ASP.NET
Catégorie:
Autre
Versions des environnements
Environment:
VB 9.0
OS:
Vista
Network:
Windows 2008 Server
Database:
MS SQL Server
Divers
Thread ID:
01356799
Message ID:
01356836
Vues:
30
>Hi,
>I was thinking since Application_Start() is event, therefore the code in BaseGlobal should be executed as well. Doesn't it?
>
>Please advice. Thank you

No, you have to call it explicitly.

public class BaseGlobal : HttpApplication
{
void Application_Start(object sender, EventAgrs e)
{
// Set breakpoint string abc = "";
}
}

public class MyGlobal : BaseGlobal
{
void Application_Start(object sender, EventAgrs e)
{
// Set breakpoint string dddd = "";
BaseGlobal.Application_Start()
}
}
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform