How could I access the ViewState of the current page using HttpContext
I have a ViewStateUtil class that I’d need to implement:
public static T GetViewState<T>(ViewStateKey viewStateKey)
{
// how to implement it?! HttpContext.Current...?
}
I added a new PageViewState property and let all my pages inherit from my BasePage to expose ViewState then being able to get or set it.