Retain IEnumerable<T> value during postback
Posted
by ScG
on Stack Overflow
See other posts from Stack Overflow
or by ScG
Published on 2010-03-17T09:39:04Z
Indexed on
2010/03/17
9:41 UTC
Read the original article
Hit count: 183
ASP.NET
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.
© Stack Overflow or respective owner