mAdD INDIAN
Diamond Member
Here's the scenario:
I have a page that gets data continously. There is a client software that sends it data every 2sec or so. The code to get the data from the query string is in the page_load function of the page. Now I want to add that data to an object everytime it gets new data. But if I create an instance of that object in the page, everytime the page is loaded, a new instance of the object will be created....hence not allowing data to be stored in that object since it will be gone the next time the page is loaded.
Also, I want to access that object in another page in the same project (and directory on the webserver).
How do I do these two things? I heard about using the Application object but I couldnt' figure it out.
Thanks.
I have a page that gets data continously. There is a client software that sends it data every 2sec or so. The code to get the data from the query string is in the page_load function of the page. Now I want to add that data to an object everytime it gets new data. But if I create an instance of that object in the page, everytime the page is loaded, a new instance of the object will be created....hence not allowing data to be stored in that object since it will be gone the next time the page is loaded.
Also, I want to access that object in another page in the same project (and directory on the webserver).
How do I do these two things? I heard about using the Application object but I couldnt' figure it out.
Thanks.