Versions des environnements
Network:
Windows 2008 Server
>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
Voir le fil de ce thread
Voir le fil de ce thread à partir de ce message seulement
Voir tous les messages de ce thread
Voir tous les messages de ce thread à partir de ce message seulement