J J-T May 18, 2005 #1 I have an object which I need to keep it alive while the application is up and workin.where should I keep this object. Thanks
I have an object which I need to keep it alive while the application is up and workin.where should I keep this object. Thanks
K Karl Seguin May 18, 2005 #2 Application Application_start Application("MyObject") = myObject end application_start Karl -- MY ASP.Net tutorials http://www.openmymind.net/ - New and Improved (yes, the popup is annoying) http://www.openmymind.net/faq.aspx - unofficial newsgroup FAQ (more to come!)
Application Application_start Application("MyObject") = myObject end application_start Karl -- MY ASP.Net tutorials http://www.openmymind.net/ - New and Improved (yes, the popup is annoying) http://www.openmymind.net/faq.aspx - unofficial newsgroup FAQ (more to come!)
J J-T May 18, 2005 #3 I'm creating the object in Application_start as well.Dosen't it make any difference? Thanks
K Karl Seguin May 19, 2005 #4 Nope, just store it in the Application variable and you can access it throughout the site Check out: http://odetocode.com/Articles/89.aspx Karl -- MY ASP.Net tutorials http://www.openmymind.net/ - New and Improved (yes, the popup is annoying) http://www.openmymind.net/faq.aspx - unofficial newsgroup FAQ (more to come!)
Nope, just store it in the Application variable and you can access it throughout the site Check out: http://odetocode.com/Articles/89.aspx Karl -- MY ASP.Net tutorials http://www.openmymind.net/ - New and Improved (yes, the popup is annoying) http://www.openmymind.net/faq.aspx - unofficial newsgroup FAQ (more to come!)