473,491 Members | 2,008 Online
Bytes | Software Development & Data Engineering Community
Create Post

Home Posts Topics Members FAQ

@ Application directive in global.asax

Hi,

Global.asax can be configured to use code-behind class. In order to do that
"Implements" attribute has to be declared within @Application directive. I
have read that the base class (derived form HttpApplication) to inherit from
must be precomiled and stored in the \bin folder of the application. That
works fine. I have noticed, however, that @Application accepts also "Src"
attribute as the regular @Page directive does. In this case "Src" attribute
points to the source file of the base class. This also works fine.
My question is if "Src" attribute can be legally used or it is just an
undocumented feature of the @Application directive.

Marek.
Nov 18 '05 #1
2 1389
Hi,

Src attribute is part of the mechanism that ASP.NET uses to dynamically
create classes from ASPX declarations. src point to the class that the
programmer implemented. You can read my article on Code project:
www.codeproject.com/aspnet/ASPXFILES.asp

The same apply to Global.asax.

From MSDN : "RAD designers, such as Visual Studio .NET, do not use this
attribute. Instead, they precompiled code-behind classes and then use
the Inherits attribute."
Natty Gur[MVP]

blog : http://weblogs.asp.net/ngur
Mobile: +972-(0)58-888377
*** Sent via Developersdex http://www.developersdex.com ***
Don't just participate in USENET...get rewarded for it!
Nov 18 '05 #2
Thank you, Natty

"Natty Gur" <na***@dao2com.com> wrote in message
news:OH***************@TK2MSFTNGP11.phx.gbl...
Hi,

Src attribute is part of the mechanism that ASP.NET uses to dynamically
create classes from ASPX declarations. src point to the class that the
programmer implemented. You can read my article on Code project:
www.codeproject.com/aspnet/ASPXFILES.asp

The same apply to Global.asax.

From MSDN : "RAD designers, such as Visual Studio .NET, do not use this
attribute. Instead, they precompiled code-behind classes and then use
the Inherits attribute."
Natty Gur[MVP]

blog : http://weblogs.asp.net/ngur
Mobile: +972-(0)58-888377
*** Sent via Developersdex http://www.developersdex.com ***
Don't just participate in USENET...get rewarded for it!

Nov 18 '05 #3

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...
5
1396
by: John Christensen | last post by:
I'm currently having an issue while trying to deploy a new ASP.NET application from my personal machine to our development web server. After I copy the folder over and create an IIS application in...
5
2043
by: Leon | last post by:
Is there a way I can create a thread at application level that running all the time along with application exists? I have tried to do the above thing, and I found for some reason, the thread only...
6
2616
by: jim | last post by:
Hi All, I like to know the life cycle of an ASP .NET Application( incudieng server application, such as .NET Web Service). That means from initialization to fully running and how to reboot it or...
16
3128
by: Fernando Arámburu | last post by:
Hi , it´s me again. I will take another way because yesterday I make a question and, probably I didn´t make myself clear so you didn´t understand my question. I want to know if there is any...
8
4844
by: Vishwanathan Raman | last post by:
Hi I have a declared a static DataSet object SOBJ in Global.asax.I also have a localy defined DataSet LSOBJ in Global.asax which I am storing in Application State.Is there any technical...
6
1472
by: Chase | last post by:
I'm pretty new to asp.net and am having problems with my application timing out. I've written an application that loops through all of the information on an excel spreadsheet and does certain...
5
1805
by: WT | last post by:
Hello, In my Global.asax file, I have only an @ Application directive like <%@ Application Language="C#" Inherits="WT.Global" CodeFile="Global.asax.cs" %> Visual studio complains saying...
4
7481
by: WT | last post by:
Hello, Using VS2005, when I open the global.asax file, the editor underlines in blue all the line with a tooltip saying 'Syntaxe error '. <%@ Application Language="C#"...
0
7115
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
6978
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
1
6858
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
7360
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...
1
4881
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...
0
4578
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...
0
3086
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The...
0
1392
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated ...
1
633
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.