473,320 Members | 1,936 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

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

How to re-start application?



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

Sep 27 '06 #1
2 1084
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

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

Sep 27 '06 #2


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" <gh*******@gmail.comwrote in message news:c7**************************@news.microsoft.c om...
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

Sep 27 '06 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

1
by: Nel | last post by:
I have a question related to the "security" issues posed by Globals ON. It is good programming technique IMO to initialise variables, even if it's just $foo = 0; $bar = ""; Surely it would...
4
by: Craig Bailey | last post by:
Anyone recommend a good script editor for Mac OS X? Just finished a 4-day PHP class in front of a Windows machine, and liked the editor we used. Don't recall the name, but it gave line numbers as...
11
by: James | last post by:
My form and results are on one page. If I use : if ($Company) { $query = "Select Company, Contact From tblworking Where ID = $Company Order By Company ASC"; }
1
by: John Ryan | last post by:
What PHP code would I use to check if submitted sites to my directory actually exist?? I want to use something that can return the server code to me, ie HTTP 300 OK, or whatever. Can I do this with...
10
by: James | last post by:
What is the best method for creating a Web Page that uses both PHP and HTML ? <HTML> BLA BLA BLA BLA BLA
8
by: Beowulf | last post by:
Hi Guru's, I have a query regarding using PHP to maintain a user profiles list. I want to be able to have a form where users can fill in their profile info (Name, hobbies etc) and attach an...
8
by: Lothar Scholz | last post by:
Because PHP5 does not include the mysql extension any more is there a chance that we will see more Providers offering webspace with Firebird or Postgres Databases ? What is your opinion ? I must...
1
by: joost | last post by:
Hello, I'm kind of new to mySQL but more used to Sybase/PHP What is illegal about this query or can i not use combined query's in mySQL? DELETE FROM manufacturers WHERE manufacturers_id ...
2
by: sky2070 | last post by:
i have two file with jobapp.html calling jobapp_action.php <HTML> <!-- jobapp.html --> <BODY> <H1>Phop's Bicycles Job Application</H1> <P>Are you looking for an exciting career in the world of...
1
by: Brian | last post by:
I have an array like this: $events = array( array( '2003-07-01', 'Event Title 1', '1' //ID Number (not unique) ), array( '2003-07-02',
0
by: DolphinDB | last post by:
Tired of spending countless mintues downsampling your data? Look no further! In this article, you’ll learn how to efficiently downsample 6.48 billion high-frequency records to 61 million...
0
by: ryjfgjl | last post by:
ExcelToDatabase: batch import excel into database automatically...
0
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: jfyes | last post by:
As a hardware engineer, after seeing that CEIWEI recently released a new tool for Modbus RTU Over TCP/UDP filtering and monitoring, I actively went to its official website to take a look. It turned...
1
by: PapaRatzi | last post by:
Hello, I am teaching myself MS Access forms design and Visual Basic. I've created a table to capture a list of Top 30 singles and forms to capture new entries. The final step is a form (unbound)...
1
by: Defcon1945 | last post by:
I'm trying to learn Python using Pycharm but import shutil doesn't work
1
by: Shællîpôpï 09 | last post by:
If u are using a keypad phone, how do u turn on JavaScript, to access features like WhatsApp, Facebook, Instagram....
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome former...

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.