Multiple choice technology programming languages

Which class do you implement to customize the storage of viewstate into sql server?

  1. SaveViewState

  2. LoadViewState

  3. PageStatePersister

  4. SqlPageStatePersister

Reveal answer Fill a bubble to check yourself
C Correct answer
Explanation

The PageStatePersister class is the base class that you inherit from to customize how ViewState is stored and loaded. By creating a custom class that derives from PageStatePersister and overriding the Save and Load methods, you can implement persistence to SQL Server or any other custom storage mechanism.