Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Is EnableViewState property inherited by child controls?

Tags:

asp.net

<div runat="server" enableviewstate="false">

    <div runat="server" enableviewstate="false"></div>

</div>

What happends if I won't set the enableviewstate property for the second div. Is it inherited from it's parent or not ?

like image 586
Sorin Avatar asked May 26 '10 07:05

Sorin


1 Answers

it get inherited form the parent one.

EnableViewState property on any container will override the behavior of all controls within that contain

like image 191
Pranay Rana Avatar answered Oct 02 '22 00:10

Pranay Rana