Brynn V1.0.0
unread,Nov 27, 2009, 4:45:24 AM11/27/09Sign in to reply to author
Sign in to forward
You do not have permission to delete messages in this group
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to DotNetDevelopment, VB.NET, C# .NET, ADO.NET, ASP.NET, XML, XML Web Services,.NET Remoting
I would maybe try Application variables in the web.config file ...
that then can be easily set from c#.
I would also look at the HttpModule that many like to use for
App begin, request begin, error ... it is also a helpful spot.
http://msdn.microsoft.com/en-us/magazine/bb985530.aspx
Now, the application by default terminates after 29 hours of no use.
I personally would throw them in a text file and have the text file
values updated with a special class just for that, at the same time
the Application variable itself changes.
Then, when the HttpModule's Init kicks in ... after the App has
died and is coming back to life ... you can reload those values
into the App with a quick private function in HttpModule class.
This all assumes the changes to the App variables are going to
be done dynamically vs manually.
Anyway, take care.