Solved

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

Posted on 2009-04-06
4
790 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

Do You Know the 4 Main Threat Actor Types?

Do you know the main threat actor types? Most attackers fall into one of four categories, each with their own favored tactics, techniques, and procedures.

Join & Write a Comment

Just a quick little trick I learned recently.  Now that I'm using jQuery with abandon in my asp.net applications, I have grown tired of the following syntax:      (CODE) I suppose it just offends my sense of decency to put inline VBScript on a…
In an ASP.NET application, I faced some technical problems. In this article, I list them out and show the solutions that I found.  I hope it will be useful. Problem: After closing a pop-up window, the parent page should be refreshed automaticall…
Access reports are powerful and flexible. Learn how to create a query and then a grouped report using the wizard. Modify the report design after the wizard is done to make it look better. There will be another video to explain how to put the final p…
When you create an app prototype with Adobe XD, you can insert system screens -- sharing or Control Center, for example -- with just a few clicks. This video shows you how. You can take the full course on Experts Exchange at http://bit.ly/XDcourse.

743 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

Need Help in Real-Time?

Connect with top rated Experts

14 Experts available now in Live!

Get 1:1 Help Now