The RegisterViewStateHandler method is automatically called through the HtmlForm server control. If this method is not invoked, the page view state will not be persisted.
Note
Typically, only the HtmlForm server control for the page calls this method.