---
title: "What does the \"EnableViewState\" property do? Why do we want it On or Off?"  
description: "What does the \"EnableViewState\" property do? Why do we want it On or Off?"  
author: "Sumit Kesarwani"  
published: 2014-09-01  
updated: 2020-09-21  
canonical: https://www.mindstick.com/interview/2097/what-does-the-enableviewstate-property-do-why-do-we-want-it-on-or-off  
category: "asp.net"  
tags: ["asp.net"]  
reading_time: 1 minute  

---

# What does the "EnableViewState" property do? Why do we want it On or Off?

The EnableViewState property enables the ViewState property on the page. It is set to On to allow the page to save the users input between postback requests of a Web page; that is, between the Request and corresponding Response objects. When this property is set to Off, the page does not store the users input during postback.

## Answers

### Answer by Sumit Kesarwani

The EnableViewState property enables the ViewState property on the page. It is set to On to allow the page to save the users input between postback requests of a Web page; that is, between the Request and corresponding Response objects. When this property is set to Off, the page does not store the users input during postback.


---

Original Source: https://www.mindstick.com/interview/2097/what-does-the-enableviewstate-property-do-why-do-we-want-it-on-or-off

Copyright © MindStick Software Pvt. Ltd. This Markdown version is provided for developers, AI systems, and offline reading.
