How to create a class that I can access across multiple ASP.NET pages?

Nappy

New member
I want to create a class to hold some data which will be accessible no matter what page I navigate to. I am using Server.Transfer(path, true) to switch between pages, and my first thought was to use a static class. But a static class can only contain static members and I need to instantiate new objects on different pages that need to be accessible from all pages. What is the best way to persist this data in a class? language is C#, .Net framework 3.5.
 
Back
Top