-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathGlobal.asax
141 lines (110 loc) · 4.23 KB
/
Global.asax
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
<%@ Application Language="VB" %>
<%@ Import Namespace="System.Web.Routing" %>
<script RunAt="server">
Sub Application_Start(ByVal sender As Object, ByVal e As EventArgs)
' Code that runs on application startup
RegisterRoutes(RouteTable.Routes)
End Sub
Shared Sub RegisterRoutes(routes As RouteCollection)
routes.MapPageRoute("Login",
"Login",
"~/Login.aspx", True)
routes.MapPageRoute("User",
"User",
"~/User.aspx", True)
routes.MapPageRoute("UserGroup",
"UserGroup",
"~/UserGroups.aspx", True)
routes.MapPageRoute("Security",
"Security",
"~/SecurityModuleSettings.aspx", True)
routes.MapPageRoute("Map",
"Map",
"~/MapViewSettings.aspx", True)
routes.MapPageRoute("General",
"General",
"~/GeneralSettings.aspx", True)
routes.MapPageRoute("Home",
"Home",
"~/Home.aspx", True)
routes.MapPageRoute("Logout",
"Logout",
"~/LogOut.aspx", True)
routes.MapPageRoute("DynamicModules",
"DynamicModules",
"~/DynamicDataDefsNew.aspx", True)
routes.MapPageRoute("DataViews",
"DataViews",
"~/GISGridTableSettings.aspx", True)
routes.MapPageRoute("RSS",
"RSS",
"~/Feeds.aspx", True)
routes.MapPageRoute("RSSGroups",
"RSSGroups",
"~/FeedGroups.aspx", True)
routes.MapPageRoute("MapLibrary",
"MapLibrary",
"~/TtkGISProjectDef.aspx", True)
routes.MapPageRoute("ThemeGroups",
"ThemeGroups",
"~/ThemeGroups.aspx", True)
routes.MapPageRoute("Themes",
"Themes",
"~/Themes.aspx", True)
routes.MapPageRoute("GeoBookMarksCategories",
"GeoBookMarksCategories",
"~/GeoBookMarksCategories.aspx", True)
routes.MapPageRoute("GeoBookMarks",
"GeoBookMarks",
"~/GeoBookMarks.aspx", True)
routes.MapPageRoute("WebTiles",
"WebTiles",
"~/WebTiles.aspx", True)
routes.MapPageRoute("Formatting",
"Formatting",
"~/DynamicDataManager.aspx", True)
routes.MapPageRoute("Validation",
"Validation",
"~/Validation.aspx", True)
routes.MapPageRoute("NearbyFeatures",
"NearbyFeatures",
"~/NearbyFeatures.aspx", True)
routes.MapPageRoute("ChartSettings",
"Charts",
"~/ChartSettings.aspx", True)
routes.MapPageRoute("Queries",
"Queries",
"~/Queries.aspx", True)
routes.MapPageRoute("ComboRelations",
"ComboRelations",
"~/ComboRelations.aspx", True)
End Sub
Sub Application_End(ByVal sender As Object, ByVal e As EventArgs)
' Code that runs on application shutdown
End Sub
Sub Application_Error(ByVal sender As Object, ByVal e As EventArgs)
' Code that runs when an unhandled error occurs
End Sub
Sub Session_Start(ByVal sender As Object, ByVal e As EventArgs)
' Code that runs when a new session is started
Session("UserAuthentication") = ""
Session("database") = ""
Session("Username") = ""
Session("ID") = ""
Session("IsPass") = ""
Session("UserGroup") = ""
End Sub
Sub Session_End(ByVal sender As Object, ByVal e As EventArgs)
' Code that runs when a session ends.
' Note: The Session_End event is raised only when the sessionstate mode
' is set to InProc in the Web.config file. If session mode is set to StateServer
' or SQLServer, the event is not raised.
Session("UserAuthentication") = ""
Session("database") = ""
Session("Username") = ""
Session("ID") = ""
Session("IsPass") = ""
Session("UserGroup") = ""
' Session.Abandon()
End Sub
</script>