[Okta Webinar] Learn how to a build a cloud-first strategyRegister Now

x
?
Solved

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

Posted on 2009-04-06
4
Medium Priority
?
824 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 2000 total points
ID: 24078515
0

Featured Post

Free Tool: IP Lookup

Get more info about an IP address or domain name, such as organization, abuse contacts and geolocation.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

I have developed many web applications with asp & asp.net and to add and use a dropdownlist was always a very simple task, but with the new asp.net, setting the value is a bit tricky and its not similar to the old traditional method. So in this a…
In .NET 2.0, Microsoft introduced the Web Site.  This was the default way to create a web Project in Visual Studio 2005.  In Visual Studio 2008, the Web Application has been restored as the default web Project in Visual Studio/.NET 3.x The Web Si…
Exchange organizations may use the Journaling Agent of the Transport Service to archive messages going through Exchange. However, if the Transport Service is integrated with some email content management application (such as an anti-spam), the admin…
We’ve all felt that sense of false security before—locking down external access to a database or component and feeling like we’ve done all we need to do to secure company data. But that feeling is fleeting. Attacks these days can happen in many w…
Suggested Courses
Course of the Month18 days, 16 hours left to enroll

834 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