Disabling ViewState in web.config

Starting a new web project, I always disable viewstate by default. If I need it later, I’ll enable it on a page-by-page basis.

To do this in web.config:

<pages enableViewState="false">

This IS case-sensitive. Not sure why.

Technorati Tags:

1 Response to “Disabling ViewState in web.config”

  1. 1 Mark J. Miller September 6, 2008 at 7:23 am

    The reason it is case-sensitive is because Xml is case-sensitive.

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Google+ photo

You are commenting using your Google+ account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )


Connecting to %s

TwitterCounter for @anthonyrstevens
Add to Technorati Favorites

RSS Feed

View Anthony Stevens's profile on LinkedIn

%d bloggers like this: