forked from BlogEngine/BlogEngine.NET
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathGlobal.asax
More file actions
15 lines (13 loc) · 428 Bytes
/
Copy pathGlobal.asax
File metadata and controls
15 lines (13 loc) · 428 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
<%@ 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>