I
Israel Ordonez Jr
Hi everybody,
I am having a problem with an ASP.NET application i am working on. I new to
ASP.NET so I'm not sure if I'm doing this right.
I am working on a website that has an oil price listed throught several
pages. In the global.asax file i have the following code.
Sub Application_Start(ByVal sender As Object, ByVal e
As EventArgs)
' Fires when the application is started
Application("OilPrice") = "1.14"
Application("PrePay") = "1.14"
End Sub
I reference these variables on other pages. Everything works correctly up to
this point. I have another page were the price can be changed. Once a new
price is changed it reflects on all pages. The problem is after a few hours
or the next day. The price always resets to the "1.14" in the global.asax
file. It was my understanding that the Application_Start event only occurs
once, the first time the application is accessed.
Is my assumption correct? If so what could be causing the variables to be
reset? Thanks!
I am having a problem with an ASP.NET application i am working on. I new to
ASP.NET so I'm not sure if I'm doing this right.
I am working on a website that has an oil price listed throught several
pages. In the global.asax file i have the following code.
Sub Application_Start(ByVal sender As Object, ByVal e
As EventArgs)
' Fires when the application is started
Application("OilPrice") = "1.14"
Application("PrePay") = "1.14"
End Sub
I reference these variables on other pages. Everything works correctly up to
this point. I have another page were the price can be changed. Once a new
price is changed it reflects on all pages. The problem is after a few hours
or the next day. The price always resets to the "1.14" in the global.asax
file. It was my understanding that the Application_Start event only occurs
once, the first time the application is accessed.
Is my assumption correct? If so what could be causing the variables to be
reset? Thanks!