473,795 Members | 2,418 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

whats happenig inside the global.asax

sai
hi all,
i have writen the following code in global.asax events and i have
kept break points on following events to trace.
protected void Session_Start(O bject sender, EventArgs e)
{

Response.Write( "Session_Start" );

Response.Write( "\n");

}

protected void Application_Beg inRequest(Objec t sender, EventArgs e)

{

Response.Write( "Application_Be ginRequest");

Response.Write( "\n");

}

protected void Application_End Request(Object sender, EventArgs e)

{

Response.Write( "Application_En dRequest");

Response.Write( "\n");

}

protected void Application_Aut henticateReques t(Object sender, EventArgs e)

{

Response.Write( "Application_Au thenticateReque st");

Response.Write( "\n");

}

protected void Application_Err or(Object sender, EventArgs e)

{

Response.Write( "Application_Er ror");

Response.Write( "\n");

}

protected void Session_End(Obj ect sender, EventArgs e)

{

Response.Write( "Session_En d");

Response.Write( "\n");

}

protected void Application_End (Object sender, EventArgs e)

{

Response.Write( "Application_En d");

Response.Write( "\n");

}

The out put is priented on the page After the "Application_En d "event is
fired why?

the output is:

Application_Beg inRequest Application_Aut henticateReques t Session_Start

Application_End Request

Jul 7 '06 #1
1 1925
It says Application_End Request not Application_End

There's quite a difference.

sai wrote:
hi all,
i have writen the following code in global.asax events and i have
kept break points on following events to trace.
protected void Session_Start(O bject sender, EventArgs e)
{

Response.Write( "Session_Start" );

Response.Write( "\n");

}

protected void Application_Beg inRequest(Objec t sender, EventArgs e)

{

Response.Write( "Application_Be ginRequest");

Response.Write( "\n");

}

protected void Application_End Request(Object sender, EventArgs e)

{

Response.Write( "Application_En dRequest");

Response.Write( "\n");

}

protected void Application_Aut henticateReques t(Object sender, EventArgs e)

{

Response.Write( "Application_Au thenticateReque st");

Response.Write( "\n");

}

protected void Application_Err or(Object sender, EventArgs e)

{

Response.Write( "Application_Er ror");

Response.Write( "\n");

}

protected void Session_End(Obj ect sender, EventArgs e)

{

Response.Write( "Session_En d");

Response.Write( "\n");

}

protected void Application_End (Object sender, EventArgs e)

{

Response.Write( "Application_En d");

Response.Write( "\n");

}

The out put is priented on the page After the "Application_En d "event is
fired why?

the output is:

Application_Beg inRequest Application_Aut henticateReques t Session_Start

Application_End Request
Jul 7 '06 #2

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

Similar topics

0
1230
by: Arjen | last post by:
Hi, I use form authentication for my asp.net 2.0 webapplication. When a user request a page it must first load some settings. These settings will be placed inside the context.items. I can add this method in all pages but that is not what I want. Easier will be one declaration... This loading happens inside the global.asax file. This way it loads automaticly the settings, no matter what page the user request. This is what
22
3803
by: fd123456 | last post by:
Hi Tom ! Sorry about the messy quoting, Google is playing tricks on me at the moment. > Global.asax is where you normally have the Global Application > and Session variables and code to manipulate them. It starts > and ends with <script></script> tags. > > Yours looks like a compiled version of it.
12
3832
by: John M | last post by:
Hello, On Microsoft Visual Studio .NET 2003, I want to use some global elements, that can be used in each one of my pages. i.e I put a oleDBConnection on global.asax.vb How can I use it (the oleDBConnection on global.asa.vb) at the other aspx pages ?
2
3713
by: Steve | last post by:
I am new to this newsgroup & to .NET in general. I have been playing around with Visual Studio .NET, building and rendering web pages using VB "code behind" files. My problem / question is; How do I ensure that changes made to the "Global.asax.vb" file are immediately reflected in the "Global.asax" file? After I change to the "Global.asax.vb" file, the "Global.asax" file date modified does not change and I do not see the updated values...
11
8379
by: Ron | last post by:
I have a web project compiled with the new "Web Deployment Projects" plugin for VS2005. I'm deploying the web project to one assembly and with updateable option set to ON. When I'm running the generated code on a W2K3 server the application_start and any other event on the global.asax file won't fire. I added tracing and logging to make sure and I can see the code is just not execution. When running the same exact (deployed etc.) code on...
0
809
by: sai | last post by:
hi all, I have written the following code in global.asax events and I have kept break points on following events to trace. protected void Session_Start(Object sender, EventArgs e) { Response.Write("Session_Start"); Response.Write("\n"); }
0
1268
by: Michael | last post by:
Hi I have a problem related to global.asax and the Server.Mappath-Method. I collect all unhandled errors in the Application_Error in Global.asax. According to the type of error I redirect/transfer the user to the correct error page. DataException --~/DBError.aspx
3
3279
by: Jack | last post by:
Hello, I am trying to add how many users online to my website. I have setup a Global.asax and need some morehelp. I have the following Global.asax Public Class Global Inherits System.Web.HttpApplication
12
10712
by: =?Utf-8?B?QWxleCBNYWdoZW4=?= | last post by:
Hi. I am trying to maintain a list of people who are currently "online" in SQL. I do this by adding a simple entry to a simple PeopleOnline table whenever someone logs in to my site. If they manually log OUT of the site, I have no problem deleting them from the PeopleOnline table. But if they just close the browser, I was assuming I'd have to use the Session_End() event in Global.asax even though I know that this will only occur once the...
0
9519
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 effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
10438
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
10214
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...
1
10164
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 Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
10001
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
9042
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...
0
5437
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 last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
2
3727
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
3
2920
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

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.