Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Fancy trick with Application_Start
Message
De
29/01/2015 09:52:10
 
 
À
29/01/2015 09:35:42
Information générale
Forum:
ASP.NET
Catégorie:
Autre
Versions des environnements
Environment:
VB 9.0
OS:
Windows 8.1
Network:
Windows 2008 Server
Database:
MS SQL Server
Application:
Web
Divers
Thread ID:
01614564
Message ID:
01614594
Vues:
20
>BTW, even if the global.asax contains this:
>
>
>< @ Application Language="VB" Inherits="Framework.GlobalBase"%>
>
>
>...which means it would use my class instead, which does not contain Application_Start(), and update the global.asax like this:
>
>
>< @ Application Language="VB" Inherits="Framework.GlobalBase"%>
><script>
>    Sub Application_Start()
>        ...
>    End Sub
></script>
>
>
>Does this mean it will still use my class, but as my class does not contain that event, it would then be able to use the event in the global.asax file instead?
>
>Basically, if one particular event is not in both places, it would work to use a mix and match approach like this?

Yes. If there's no Application_Start in the .cs file the script one will fire.
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform