locked
Whether child control's viewstate will be disabled if container control's viewstate is disabled ? RRS feed

  • Question

  • User-1976290245 posted

    Hi,

    Suppose there is a panel control whose EnableViewState property is set to "false" .If this panel contains child controls like GridView , label controls , Template fields in gridview etc. , then will the viewstate property of the child controls automatically be disabled ?

    Sunday, May 8, 2011 3:04 AM

Answers

  • User1793961502 posted

    There's a concise document on the ASP.Net ViewState here:

    http://msdn.microsoft.com/en-us/library/ms972976.aspx

    Do a page search for "child". The header "Disabling ViewState" should answer your question, though I would test it out yourself - it's pretty easy to debug something like this.

    • Marked as answer by Anonymous Thursday, October 7, 2021 12:00 AM
    Sunday, May 8, 2011 3:49 AM