I am a PHP developer and have been asked to make some amends to an Asp.Net site. There is a hardcoded table on one page which contains event information (Date, venue etc). The page uses javascript to toggle table row colours based on whether the event has already happened.
I need to add a block on another page which displays 2 upcoming events based on the current date. What is the simplest way to store and share the event data between pages? There is no database available so it needs to be a local file or array etc.
I would appreciate some insight on any good libraries / techniques which would be appropriate. This is for a simple, low-traffic site.
Create a small class that represents your
Event, then you can store it in theSessionstate: