Answer the question
In order to leave comments, you need to log in
Is it possible to store data between PostBacks in a non-static class?
Good afternoon!
There is a dynamic .aspx page. It is filled in by the user with various data. I want this data to be saved between PostBacks in a non-static class located in a separate .cs file
. For example, a class:
class MyClass
{
string a;
string b;
}
MyClass my_class = new MyClass();
my_class.a = "значение 1";
my_class.b = "значение 2";
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question