|
web
newsgroups
|
|||||||||||||||||||||||
|
|||||||||||||||||||||||
How to re-start application?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 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 > 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
how to get both old and new value for a changed text box
check username and password in database A question of design How to make stacktrace include linenumber for release compiles? REPLACE method: unwanted multiple-replacement Detect right-click in MDI container's client area? word length occurance in a text.. Encrypt a date to use in demo version System.Diagnostics.Process.Start Freezes Visual Studio Proffessional 2005 |
|||||||||||||||||||||||