Dim mgr As WebPartManager Try mgr = WebPartManager.GetCurrentWebPartManager(Page) mgr.Personalization.ResetPersonalizationState() Catch ex As Exception Throw ex End Try
WebPartManager mgr; try { mgr= WebPartManager.GetCurrentWebPartManager(Page); mgr.Personalization.ResetPersonalizationState(); } catch (exception ex) { throw ex; }