473,394 Members | 1,746 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,394 software developers and data experts.

ASP.NET 2005 : where is Global.asax ?

I installed VS05 RC , created a new Web Site , but I do not see Global.asax
, and I do not see Global.asax.cs in the App_Code dir ......
Nov 19 '05 #1
4 7600
A global.asax is not created by default.

Select "File", "New", "File", and select "Global Application Class"
from the templates.

Or, right-click the website's name in the Solution Explorer and select
"Add new item" and select "Global Application Class" from the templates.

Juan T. Llibre, ASP.NET MVP
ASP.NET FAQ : http://asp.net.do/faq/
Foros de ASP.NET en Español : http://asp.net.do/foros/
======================================
"John A Grandy" <johnagrandy-at-yahoo-dot-com> wrote in message
news:eL**************@TK2MSFTNGP14.phx.gbl...
I installed VS05 RC , created a new Web Site , but I do not see Global.asax , and I do
not see Global.asax.cs in the App_Code dir ......

Nov 19 '05 #2
Ok. I was able to do that. But apparently Global.asax.cs no longer exists
.... the various methods ( Application_Start , etc. ) instead show inline in
Global.asax ...

Why did they do this ?
"Juan T. Llibre" <no***********@nowhere.com> wrote in message
news:%2****************@TK2MSFTNGP15.phx.gbl...
A global.asax is not created by default.

Select "File", "New", "File", and select "Global Application Class"
from the templates.

Or, right-click the website's name in the Solution Explorer and select
"Add new item" and select "Global Application Class" from the templates.

Juan T. Llibre, ASP.NET MVP
ASP.NET FAQ : http://asp.net.do/faq/
Foros de ASP.NET en Español : http://asp.net.do/foros/
======================================
"John A Grandy" <johnagrandy-at-yahoo-dot-com> wrote in message
news:eL**************@TK2MSFTNGP14.phx.gbl...
I installed VS05 RC , created a new Web Site , but I do not see
Global.asax , and I do not see Global.asax.cs in the App_Code dir ......


Nov 19 '05 #3
I guess they figure that, since global.asax doesn't have a UI,
writing the code inline in global.asax saves the extra step involved
in writing code into a codebehind file.

The purpose of codebehind is to separate code from UI.
Since global.asax has no UI, it doesn't need to have codebehind.

You can do anything you want inline in global.asax
that you could do in previous incarnations of codebehind global.asax.


Juan T. Llibre, ASP.NET MVP
ASP.NET FAQ : http://asp.net.do/faq/
Foros de ASP.NET en Español : http://asp.net.do/foros/
======================================
"John A Grandy" <johnagrandy-at-yahoo-dot-com> wrote in message
news:O%****************@TK2MSFTNGP10.phx.gbl...
Ok. I was able to do that. But apparently Global.asax.cs no longer exists ... the
various methods ( Application_Start , etc. ) instead show inline in Global.asax ...

Why did they do this ?
"Juan T. Llibre" <no***********@nowhere.com> wrote in message
news:%2****************@TK2MSFTNGP15.phx.gbl...
A global.asax is not created by default.

Select "File", "New", "File", and select "Global Application Class"
from the templates.

Or, right-click the website's name in the Solution Explorer and select
"Add new item" and select "Global Application Class" from the templates.

Juan T. Llibre, ASP.NET MVP
ASP.NET FAQ : http://asp.net.do/faq/
Foros de ASP.NET en Español : http://asp.net.do/foros/
======================================
"John A Grandy" <johnagrandy-at-yahoo-dot-com> wrote in message
news:eL**************@TK2MSFTNGP14.phx.gbl...
I installed VS05 RC , created a new Web Site , but I do not see Global.asax , and I do
not see Global.asax.cs in the App_Code dir ......



Nov 19 '05 #4
because asp.net compiles all the source code now, not VS, so the extra file
is not required.

-- bruce (sqlwork.com)
"John A Grandy" <johnagrandy-at-yahoo-dot-com> wrote in message
news:O%****************@TK2MSFTNGP10.phx.gbl...
Ok. I was able to do that. But apparently Global.asax.cs no longer exists
... the various methods ( Application_Start , etc. ) instead show inline
in Global.asax ...

Why did they do this ?
"Juan T. Llibre" <no***********@nowhere.com> wrote in message
news:%2****************@TK2MSFTNGP15.phx.gbl...
A global.asax is not created by default.

Select "File", "New", "File", and select "Global Application Class"
from the templates.

Or, right-click the website's name in the Solution Explorer and select
"Add new item" and select "Global Application Class" from the templates.

Juan T. Llibre, ASP.NET MVP
ASP.NET FAQ : http://asp.net.do/faq/
Foros de ASP.NET en Español : http://asp.net.do/foros/
======================================
"John A Grandy" <johnagrandy-at-yahoo-dot-com> wrote in message
news:eL**************@TK2MSFTNGP14.phx.gbl...
I installed VS05 RC , created a new Web Site , but I do not see
Global.asax , and I do not see Global.asax.cs in the App_Code dir ......



Nov 19 '05 #5

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

5
by: Mike Owen | last post by:
Hi, I have just used the import Wizard to import a VS 2003 app to VS 2005. I have a lot of work to do to enable it to compile successfully with all the errors and warnings it gave me, but as a...
5
by: Chris | last post by:
Hi, When creating an ASP.NET project in VisualStudio 2005 : where have web.config, global.asax, ... gone ? as well the declaration of the datamembers in the WebForm1-class ? where is the...
1
by: Blasting Cap | last post by:
I had a copy of a project that was working in Visual Studio 2003 and Framework 1.1. After a computer crash, I was given VS 2005 and am having more than a little difficulty getting things to open...
5
by: Nathan Sokalski | last post by:
I recently upgraded from Visual Studio .NET 2003 to Visual Studio .NET 2005. Visual Studio .NET 2005 does not create the Global.asax files that Visual Studio .NET 2003 did, which I used for...
29
by: Mark Rae | last post by:
http://msdn.microsoft.com:80/vstudio/support/vs2005sp1/default.aspx 1) This is big - nearly 500Mb 2) If you have WAP installed, you must uninstall it first - WDP doesn't need to be uninstalled...
4
by: Al Santino | last post by:
Hello, I've created a simple C# web services project using Visual Studio 2005. My service compiles and runs correctly when called by remote clients. I'm able to step through the service in the...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.