?
Solved

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

Posted on 2009-04-06
4
Medium Priority
?
830 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

Never miss a deadline with monday.com

The revolutionary project management tool is here!   Plan visually with a single glance and make sure your projects get done.

Question has a verified solution.

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

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…
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…
Is your organization moving toward a cloud and mobile-first environment? In this transition, your IT department will encounter many challenges, such as navigating how to: Deploy new applications and services to a growing team Accommodate employee…
If you are looking for an automated solution for backup single or multiple Office 365 user mailboxes to Outlook data file, then you can use Kernel Office 365 Backup & Restore tool. Go through the video to check out the steps to backup single or mult…
Suggested Courses
Course of the Month5 days, 12 hours left to enroll

588 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