Retain IEnumerable<T> value during postback
- by ScG
I have an IEnumerable< T which is declared on the page like this:
IEnumerable< Person person;
When the page postsback, the person list is null. How can I retain the values of person list without declaring it as static? Sr. devs in my company say that you should not declare the list as static.