Hidden Fields

There is an older method of storing state that can be useful. It uses hidden HTML fields to hold state data. For example, you can create a text field in your .aspx page (possible with a Label or TextBox object) and set its Visible property to false. The data in the object will persist between page round trips as long as the objects are in the <form>.

Get Special Edition Using® Microsoft® ASP.NET now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.