disabling viewstate at a folder level

  • Thread starter Thread starter JJ
  • Start date Start date
J

JJ

Is there way in webconfig to disable viewstate for all aspx files in a
certain folder? I know there is a way to do that for the whole application
and i am wondering same concept is available for at a folder level.

Thanks
 
Hi there,

No problem at all. Create a web.config inside the directory you want to
disable viewstate with following content:

<?xml version="1.0"?>

<configuration>
<system.web>
<pages enableViewState="false"/>
</system.web>
</configuration>


Done.
 
Back
Top