How to re-start application?

  • Thread starter Thread starter Jeff
  • Start date Start date
J

Jeff

This is probably a stupid beginner question, but I have an application variable specified in the global file in asp.net 2.0 using
VB. It simply stores the result of a value from a database. It rarely changes and will be used by all sessions in a read-only
manner - thus the reason to make it an application variable. ...but when it does change, how do I force the application to re-load
this value or otherwise re-run the application_start event in the global.asax file? I'm hoping to do this programmatically in the
same code section that alters the database value. Re-booting the server worked, but obviously I can't routinely do this.

I've checked on the web and can't seem to find the answer. Can someone help?

Thanks

Jeff
 
Hello Jeff,

Jeff, Jeff-o, Jeffery.. Apply your brain man.. Move the functionality to
a separate procedure.. call this new proceedure from both the application
start event and from the database update code.

-Boo
 
Ahh, of course. I do this all of the time with other procedures - ...not sure why I was drawing a blank on doing the same within the
startup code. I had a feeling it was going to be something obvious...

Thanks
 
Back
Top