Answer: In the Pages section inside web.config file,we can set EnableViewState property to True/False,which will be applied in all the pages in an application.
For Example:-
To enable/disable a ViewState,in web.config file write:-
<configuration>
<system.web>
<pages enableViewState="false">
</system.web>
</configuration>
Asked In: Many Interviews |
Alert Moderator