Global.asax

  • Thread starter Thread starter ttt.tas
  • Start date Start date
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 :)
 
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
 
Back
Top