/BlogEngine/BlogEngine.NET/Global.asax
ASP.NET | 15 lines | 13 code | 2 blank | 0 comment | 0 complexity | ec434e284cb3b0ed775ef3fb5c9c77f2 MD5 | raw file
Possible License(s): LGPL-2.1, Apache-2.0, BSD-3-Clause
- <%@ Application Language="C#" %>
- <%@ Import Namespace="BlogEngine.NET.App_Start" %>
-
- <script RunAt="server">
- void Application_BeginRequest(object sender, EventArgs e)
- {
- var app = (HttpApplication)sender;
- BlogEngineConfig.Initialize(app.Context);
- }
-
- void Application_PreRequestHandlerExecute(object sender, EventArgs e)
- {
- BlogEngineConfig.SetCulture(sender, e);
- }
- </script>