Here are my questions:
1. I created a file called Global.asax (Global Application Class). There are
Session_Start method and Application_Start. I added the following code in
Session_Start:
DataAccessLayer.Initialize()
However, which place is better and more efficient Application_Start or Session_Start?
-----------------------------
2. A singleton class called DataAccessLayer in VB.NET. There is initialize()
method, we instantiated the object DataAccessLayer within DataAccessLayer class
while we haven't even reach End Class yet! How can this be? Can you please clarify...
1. I created a file called Global.asax (Global Application Class). There are
Session_Start method and Application_Start. I added the following code in
Session_Start:
DataAccessLayer.Initialize()
However, which place is better and more efficient Application_Start or Session_Start?
-----------------------------
2. A singleton class called DataAccessLayer in VB.NET. There is initialize()
method, we instantiated the object DataAccessLayer within DataAccessLayer class
while we haven't even reach End Class yet! How can this be? Can you please clarify...