Answer: No.
You can set it to true or false as per your requirement but in fact it will not have any effect to the controls. Because viewstate in ASP.NET has hierarchical nature. Hence, following code will not work if you have set EnableViewState = false; for page.
protected void Page_Load(object sender, EventArgs e)
{
txtTest.EnableViewState = true;
}
Asked In: Many Interviews |
Alert Moderator