views:

123

answers:

3

In classic asp you had the Global.asa file, what's the equivalent in .Net? I want a central point in which to create (once) a master DataSet that I want to be able to access throughout my application? What would be the correct event, onStart?

Thanks R.

+6  A: 

The ASP.NET Equivalent is global.asax.

The Official ASP.NET Web Site is an excellent resource. In particular, see Getting Started.

John Saunders
Thanks, I need to work my way through some of those tutorials, time is always a factor. :)
flavour404
I strongly suggest you do this, or at least read a "Beginning ASP.NET Development" book. The differences are very great, especially the jump from VBSCRIPT to an OO language like VB.NET. You will otherwise spend too much time tripping over your thorough knowledge of an ancient technology (Classic ASP).
John Saunders
+1  A: 

Global.asax

Frank Schwieterman
+4  A: 

Application_Start in the Global.asax

Yuriy Faktorovich
Thanks, exactly what I was looking for.I thought the Application_Init was the first to fire, but doesn't seem to be?! Something else to check out.
flavour404
My pleasure, Application_Init doesn't seem to be valid. You can try:public override void Init() { throw new NotImplementedException(); }But the Start is the right place.
Yuriy Faktorovich