/BlogEngine/BlogEngine.NET/Global.asax

# · ASP.NET · 15 lines · 13 code · 2 blank · 0 comment · 0 complexity · ec434e284cb3b0ed775ef3fb5c9c77f2 MD5 · raw file

  1. <%@ Application Language="C#" %>
  2. <%@ Import Namespace="BlogEngine.NET.App_Start" %>
  3. <script RunAt="server">
  4. void Application_BeginRequest(object sender, EventArgs e)
  5. {
  6. var app = (HttpApplication)sender;
  7. BlogEngineConfig.Initialize(app.Context);
  8. }
  9. void Application_PreRequestHandlerExecute(object sender, EventArgs e)
  10. {
  11. BlogEngineConfig.SetCulture(sender, e);
  12. }
  13. </script>