---
title: "What is view state?"  
description: "What is view state?"  
author: "John Smith"  
published: 2011-05-13  
updated: 2020-09-18  
canonical: https://www.mindstick.com/interview/906/what-is-view-state  
category: "c#"  
tags: ["c#"]  
reading_time: 1 minute  

---

# What is view state?

The web is stateless. But in ASP.NET, the state of a page is maintained in the page itself automatically. How? The values are encrypted and saved in hidden controls. this is done automatically by the ASP.NET. This can be switched off / on for a single control

## Answers

### Answer by John Smith

The web is stateless. But in ASP.NET, the state of a page is maintained in the page itself automatically. How? The values are encrypted and saved in hidden controls. this is done automatically by the ASP.NET. This can be switched off / on for a single control


---

Original Source: https://www.mindstick.com/interview/906/what-is-view-state

Copyright © MindStick Software Pvt. Ltd. This Markdown version is provided for developers, AI systems, and offline reading.
