3

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 ?

Nasser Hadjloo
  • 12,312
  • 15
  • 69
  • 100

2 Answers2

12

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.

Community
  • 1
  • 1
Rune
  • 8,340
  • 3
  • 34
  • 47
1

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

Mitch Wheat
  • 295,962
  • 43
  • 465
  • 541