471,338 Members | 1,084 Online
Bytes | Software Development & Data Engineering Community
Post +

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 471,338 software developers and data experts.

Asp.net Application State

I have a problem with an Asp.net Web Application I have been developing. The
project contains multiple asp.net webforms. I have code that I want to only
be run when IIS first starts and when the computer is shutdown. I attempted
to do this by putting the code in the Application_Start/ Application_End
events, but these events are called each time a new webform is loaded. I
also attempted to add keys into the Application State
(Application.Add("Newkey", "Newkey") but the Key is not visible each time the
Application_Start event is thrown.

Can anyone help me understand why this event is called to each time a
webform is loaded? Is this how the event is supposed to work? Any help
anyone can give me I would appreciate. Thanks.

-Brad
Jul 21 '05 #1
0 1036

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

1 post views Thread by Bruce W.1 | last post: by
8 posts views Thread by Anthony P. Mancini | last post: by
6 posts views Thread by spacehopper_man | last post: by
reply views Thread by =?Utf-8?B?SkhhbGV5?= | last post: by
reply views Thread by rosydwin | last post: by

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.