01.
Imports
System.Web.SessionState
02.
Imports
System.Web.Routing
03.
04.
Public
Class
Global_asax
05.
Inherits
System.Web.HttpApplication
06.
07.
Sub
Application_Start(
ByVal
sender
As
Object
,
ByVal
e
As
EventArgs)
08.
09.
Application(
"ไม่เคย"
) =
"Yes"
10.
RegisterRoutes(RouteTable.Routes)
11.
End
Sub
12.
13.
Sub
Session_Start(
ByVal
sender
As
Object
,
ByVal
e
As
EventArgs)
14.
15.
End
Sub
16.
17.
Sub
Application_BeginRequest(
ByVal
sender
As
Object
,
ByVal
e
As
EventArgs)
18.
19.
End
Sub
20.
21.
Sub
Application_AuthenticateRequest(
ByVal
sender
As
Object
,
ByVal
e
As
EventArgs)
22.
23.
End
Sub
24.
25.
Sub
Application_Error(
ByVal
sender
As
Object
,
ByVal
e
As
EventArgs)
26.
27.
End
Sub
28.
29.
Sub
Session_End(
ByVal
sender
As
Object
,
ByVal
e
As
EventArgs)
30.
31.
End
Sub
32.
33.
Sub
Application_End(
ByVal
sender
As
Object
,
ByVal
e
As
EventArgs)
34.
35.
End
Sub
36.
37.
Sub
RegisterRoutes(
ByVal
routes
As
RouteCollection)
38.
39.
End
Sub
40.
End
Class