Global variable in c#
-
I have 2 classes in a code behind file. one for events of the webpage and another class for custom repeater control. I create an array in the page load event. During the execution when the control enters into custom repeater control class the array I created in the page load event is lost. how to retain that array so that I can access it from both the classes
-
I have 2 classes in a code behind file. one for events of the webpage and another class for custom repeater control. I create an array in the page load event. During the execution when the control enters into custom repeater control class the array I created in the page load event is lost. how to retain that array so that I can access it from both the classes
declare the array as static array.