Discussion Forum | Board Infinity

What is the difference between ViewState and SessionState?

What is the difference between ViewState and SessionState?

ViewState is maintained at only one level, i.e., page-level whereas SessionState is maintained at session-level. In ViewState , data can be accessed in that particular page whereas in SessionState, data can be accessed across all the pages in that particular web application.