Solved

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

Posted on 2009-04-06
4
791 Views
Last Modified: 2012-05-06
How do I disable viewstate for my entire web application from the web.config file?
0
Comment
Question by:josephdaviskcrm
  • 2
  • 2
4 Comments
 
LVL 27

Expert Comment

by:nmarun
ID: 24077884
Add this to your web.config file:
<Pages enableViewState="false"/>
0
 

Author Comment

by:josephdaviskcrm
ID: 24078314
Does it matter where in the web.config file that tag needs to go?  Does it go inside of the <appSettings/> tag?
0
 

Author Comment

by:josephdaviskcrm
ID: 24078371
Anywhere I place that in my web.config file seems to cause an error.
0
 
LVL 27

Accepted Solution

by:
nmarun earned 500 total points
ID: 24078515
0

Featured Post

3 Use Cases for Connected Systems

Our Dev teams are like yours. They’re continually cranking out code for new features/bugs fixes, testing, deploying, testing some more, responding to production monitoring events and more. It’s complex. So, we thought you’d like to see what’s working for us.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

In this Article, I will provide a few tips in problem and solution manner. Opening an ASPX page in Visual studio 2003 is very slow. To make it fast, please do follow below steps:   Open the Solution/Project. Right click the ASPX file to b…
IntroductionWhile developing web applications, a single page might contain many regions and each region might contain many number of controls with the capability to perform  postback. Many times you might need to perform some action on an ASP.NET po…
This Micro Tutorial demonstrates using Microsoft Excel pivot tables, how to reverse engineer competitors' marketing strategies through backlinks.

777 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question