I'm building a website in ASP.NET WebForm and I want to use a static type variable to hold data and use it in different classes.
To avoid the variable to reset, I declared the variable in a static type class, like this:
public static class Variavel
{
static int[] array = new int[30];
}
I would like suggestions on how to use the variable in other classes particularly in classes like public partial class WebForm1 : System.Web.UI.Page
without losing the data.