'lo
I've recently redone ForumsPile.com (no, this thread is not a shameless plug), that works by filling Application("TheList") with a string generated from a method that produces a load of <li> elements with the appropriate contents.
...but naturally, whenever the Application is restarted the Application("TheList") gets cleared, resulting in the site being contentless.
But in my Global Application_Start method, I've made a call to the "Populate" method that fills the Application dictionary, but when I logged on this morning I noticed that the list was empty.
Whilst I could add a check to the page's class ("On Page_Load: If Application("TheList") = Nothing Or "" Then Call Populate()") it doesn't seem very elegant.
Does anyone have any suggestions for alternatives (as a way of storing a long string (+60KB) in some kind of non-volatile storage in-memory) or whatever?
I did consider using a database, but it seems like overkill to store a static string.