473,654 Members | 3,096 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

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 7616
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******** ******@TK2MSFTN GP14.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_Sta rt , etc. ) instead show inline in
Global.asax ...

Why did they do this ?
"Juan T. Llibre" <no***********@ nowhere.com> wrote in message
news:%2******** ********@TK2MSF TNGP15.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******** ******@TK2MSFTN GP14.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%******** ********@TK2MSF TNGP10.phx.gbl. ..
Ok. I was able to do that. But apparently Global.asax.cs no longer exists ... the
various methods ( Application_Sta rt , etc. ) instead show inline in Global.asax ...

Why did they do this ?
"Juan T. Llibre" <no***********@ nowhere.com> wrote in message
news:%2******** ********@TK2MSF TNGP15.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******** ******@TK2MSFTN GP14.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%******** ********@TK2MSF TNGP10.phx.gbl. ..
Ok. I was able to do that. But apparently Global.asax.cs no longer exists
... the various methods ( Application_Sta rt , etc. ) instead show inline
in Global.asax ...

Why did they do this ?
"Juan T. Llibre" <no***********@ nowhere.com> wrote in message
news:%2******** ********@TK2MSF TNGP15.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******** ******@TK2MSFTN GP14.phx.gbl...
I installed VS05 RC , created a new Web Site , but I do not see
Global.asa x , 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
512
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 starting point the compiler can no longer find the function as at the bottom of this posting, that was in the Global.asax.vb file. All the function does is give an easy / quick way of getting the application
5
1160
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 compiled version ? not in bin-subdir anymore apparently !!!! thanks
1
1451
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 in VS 2005. At first, I tried converting the project. That failed (it brought in all the junk I had in my source folder). As Plan B, I created a new website, using Visual Web Developer, and
5
2324
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 variables such as the location of my database. What is the conventional way of creating global variables for purposes like this in Visual Studio .NET 2005? Thanks. -- Nathan Sokalski njsokalski@hotmail.com http://www.nathansokalski.com/
29
3005
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 3) It will almost certainly take over an hour to install!!!
4
3027
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 debugger unless I add a Global.asax file. When I do that and then try to run the debugger I receive error 403. If I remove the Global.asax file things work fine. The Global.asax file is the one generated by VS 2005 - I don't try to add anything...
0
8376
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, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
8815
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, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
8708
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 tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
0
8594
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 protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
7307
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
1
6161
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
5622
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
4294
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
1916
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

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.