G
G
graycrow2013-01-07 19:41:15
ASP.NET
graycrow, 2013-01-07 19:41:15

ASP.NET 4.5 changes in ViewState?

What has changed in the processing of ViewState by the framework version 4.5?
Code that worked fine in 4.0 stopped working in 4.5. For example, I save a variable in the ViewState, but after the postback it is missing.
Thank you.

Answer the question

In order to leave comments, you need to log in

1 answer(s)
K
Kano, 2013-01-11
@graycrow

In version 4.5, the ViewState encryption algorithm has changed a lot compared to 4.0
. Try to register this in the application config
<machineKey compatibilityMode="Framework20SP1" />

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question