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?
Who is Participating?

Improve company productivity with a Business Account.Sign Up

Add this to your web.config file:
<Pages enableViewState="false"/>
josephdaviskcrmAuthor Commented:
Does it matter where in the web.config file that tag needs to go?  Does it go inside of the <appSettings/> tag?
josephdaviskcrmAuthor Commented:
Anywhere I place that in my web.config file seems to cause an error.
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.