I’ve looked up ways to reduce the ViewState:
However, due to the situation I’m in, I need the quickest and most effective ways to reduce the ViewState size. The legacy system I’m working on is bloated and routinely has a ViewState that’s 800Kb+ on multiple postbacks.
For example, I’m pretty sure populating drop down lists with 100+ items on multiple post backs is one of the culprits, correct?
Any suggestions/advice would be appreciated.
Edit 1
Disabling the ViewState entirely doesn’t appear feasible. It breaks all of the controls, of which there are many, rendering the pages unusable. If this is the best approach, how should I go about handling all the broken controls?
You might want to look at compressing the view state as described on this code project page.
Note: I have not tried this but it seems like it should work.