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.
Sr. Devs are right. No static (rather read C# basics – really bad idea).
Variables in general do not preserve between postbacks. Read up on using the SESSION or the VIEWSTATE for storing information for a user.