Global.asax

T

ttt.tas

hi all,

i'm using asp .net v1.1, when i publish my application on the server
using xcopy, i find that the global.asax file is still there, shouldn't
it be compiled and assembled??
what if i deleted it, will the assembly files contain any data for
event handling tat was in global.asax.

i'll also be thankful if anyone can tell me some resource where i can
find details for such an issue.

Thanks for ur cooperation and quick reply :)
 
L

Laurent Bugnion

Hi,

hi all,

i'm using asp .net v1.1, when i publish my application on the server
using xcopy, i find that the global.asax file is still there, shouldn't
it be compiled and assembled??

The Global application class is composed of two files, the Global.asax
(which is an entry point just like an ASPX, ASCX, ASMX, ASHX...) and the
code behind placed in a file named Global.asax.cs. The CS file is
compiled and placed in the DLL, the ASAX file is copied to the website
as is. Once again, it's exactly the same process as with ASPX, ASMX...
what if i deleted it, will the assembly files contain any data for
event handling tat was in global.asax.

If you delete the Global.asax file and the code-behind (which VS2005
does automatically when you delete the ASAX file), and then recompile,
then the DLL won't contain the event handlers anymore. It's the same as
with any other file.
i'll also be thankful if anyone can tell me some resource where i can
find details for such an issue.

I use Google ;-)
Thanks for ur cooperation and quick reply :)

Greetings,
Laurent
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,769
Messages
2,569,582
Members
45,067
Latest member
HunterTere

Latest Threads

Top