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.BaseClassesAssembly: AdvantageCMS.Core (in AdvantageCMS.Core.dll)
Syntax
Return Value
The server control's current view state, or null if the control has no view state.Exceptions
| Exception | Condition |
|---|---|
| Exception | Thrown when the Content-Powered-By response header has been modified away from Advantage CSP. |

