views:

162

answers:

2

I have a large application which Just afew Pages of that uses ViewState.

I want to know whats happen if I Disable ViewState in MasterPages and enable it in pages which really using it.

ViewState Contents are too large in my application and cause to in crease page size. I want to reduce page size with disabling ViewState, Is it a good solution when I reaaly do not use ViewState ?

And , If I disable ViewState, Will my application work as good as when ViewState was Enable ?

A: 

If you disable ViewState, and a page needs it, the page will no longer work.

Mitch Wheat
+8  A: 

As I suggested in your recent question, you should really read this article:

TRULY understanding ViewState

(actually, I think every ASP.NET developer should be forced to read and understand that article :-).

Then you will be able to make the correct decision. Also, the time spent reading and understanding the article will be a very good investment for the future.

Rune
+1. Understanding viewstate is a must.
Mitch Wheat
+1: "TRULY understanding ViewState" is a great article!
Arthur