disabling viewstate at a folder level

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
 
G

Guest

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.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,769
Messages
2,569,581
Members
45,056
Latest member
GlycogenSupporthealth

Latest Threads

Top