Home All Groups Group Topic Archive Search About

How to re-start application?

Author
27 Sep 2006 3:29 AM
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






--
Posted via a free Usenet account from http://www.teranews.com

Author
27 Sep 2006 5:43 AM
GhostInAK
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

Show quoteHide quote
> 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
>
Author
27 Sep 2006 12:43 PM
Jeff
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




"GhostInAK" <ghosti***@gmail.com> wrote in message news:c71747b43162f8c8afcbfb1698fe@news.microsoft.com...
> 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
>
> > This is probably a stupid beginner question, but I have an application
> > variable specified in the global file in asp.net 2.0 using



--
Posted via a free Usenet account from http://www.teranews.com