Академический Документы
Профессиональный Документы
Культура Документы
Once you understand these principles, youll also be able to determine what .NET objects can be placed in view state. You simply need to find the class information in the MSDN Help. Find the class youre interested in, and examine the documentation. If the class declaration is preceded with the Serializable attribute, the object can be placed in view state. If the Serializable attribute isnt present, the object isnt serializable, and you wont be able to store it in view state. However, you may still be able to use other types of state management, such as in-process session state, which is described later in the Session State section. The following example rewrites the page shown earlier to use the generic Dictionary class. The Dictionary class is a serializable key-value collection thats provided in the System.Collections.Generic
241