/BlogEngine/BlogEngine.NET/Global.asax
# · ASP.NET · 15 lines · 13 code · 2 blank · 0 comment · 0 complexity · ec434e284cb3b0ed775ef3fb5c9c77f2 MD5 · raw file
- <%@ 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>