net4.0 features

1
ViewStateMode: In previous versions of .NET , if we want to disable viewstate on page level we will use the property EnableViewState=False in page directive and if you want to enable the viewstate on any control of the page then we can’t get value from viewstate. In .NET 4.0, if we want to disable viewstate on page level we can use the new property ViewStateMode=False in page directive and if you want to enable the viewstate on any control of the page then it is possible.

Upload: venkat-rao

Post on 15-Nov-2015

213 views

Category:

Documents


1 download

DESCRIPTION

.NET FEATURES

TRANSCRIPT

ViewStateMode:In previous versions of .NET , if we want to disable viewstate on page level we will use the property EnableViewState=False in page directive and if you want to enable the viewstate on any control of the page then we cant get value from viewstate.

In .NET 4.0, if we want to disable viewstate on page level we can use the new property ViewStateMode=False in page directive and if you want to enable the viewstate on any control of the page then it is possible.