ASP.NET - disable viewstate in the entire application from the web.config file

How do I disable viewstate for my entire web application from the web.config file?
josephdaviskcrmAsked:
Who is Participating?

Improve company productivity with a Business Account.Sign Up

x
 
nmarunCommented:
Add this to your web.config file:
<Pages enableViewState="false"/>
0
 
josephdaviskcrmAuthor Commented:
Does it matter where in the web.config file that tag needs to go?  Does it go inside of the <appSettings/> tag?
0
 
josephdaviskcrmAuthor Commented:
Anywhere I place that in my web.config file seems to cause an error.
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.