If I have a simple piece of data to store (an integer or string for example) I might choose to store that in ViewState, or using a HiddenField control.
Why would I choose one over the other?
ViewState
- Hard for the user to decode (thought not impossible), which might be desirable
HiddenField
- Value can be used in JavaScript
Are there other pros and cons?