Sorin
Sorin

Reputation: 2288

Is EnableViewState property inherited by child controls?

<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 ?

Upvotes: 7

Views: 1314

Answers (1)

Pranay Rana
Pranay Rana

Reputation: 176896

it get inherited form the parent one.

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

Upvotes: 7

Related Questions