Class CMS.OutputFilter.FormStateHelper was removed from kentico 8.This is my coding @bool sameWindow = (FormStateHelper.PreservePostbackValuesOnLogin @@ (FormStateHelper.GetSavedState() != null));...