AdvantageCMS.Core.Common.BaseClasses Namespace
Build With Advantage

AdvantagePageTemplate..::..SaveViewState Method

Saves any server control view-state changes that have occurred since the time the page was posted back to the server. Removes the X-Frame-Options: deny response header when the page is rendered in edit or preview mode (so the page can be iframed by the admin surface), and asserts that the Content-Powered-By header has not been tampered with.

Namespace:  AdvantageCMS.Core.Common.BaseClasses
Assembly:  AdvantageCMS.Core (in AdvantageCMS.Core.dll)

Syntax


protected Object SaveViewState()

Return Value

The server control's current view state, or null if the control has no view state.

Exceptions


ExceptionCondition
ExceptionThrown when the Content-Powered-By response header has been modified away from Advantage CSP.