Multiple choice .net asp

Does the EnableViewState allows the page to save the users input on a form?

  1. Yes

  2. No

Reveal answer Fill a bubble to check yourself
A Correct answer
Explanation

To answer this question, we need to understand the purpose of the EnableViewState property in ASP.NET.

The EnableViewState property determines whether the state of a control on a web page is saved and restored across postbacks. By default, EnableViewState is set to true, which means that the state of controls, including user input on a form, is saved and restored automatically.

So, the correct answer is:

A. Yes

EnableViewState allows the page to save the user's input on a form.

AI explanation

EnableViewState controls whether ASP.NET persists a control's state (like text typed into a textbox) across postbacks by serializing it into the hidden __VIEWSTATE field. When enabled, the values a user entered are preserved and restored on the next request instead of being reset to their defaults.