How It Works
With the hard work of getting the user’s favorite theme and storing it in a cookie already done, applying the theme is now very easy. The code in the PreInit event handler first verifies whether there is a cookie called PreferredTheme. It does this by comparing the return value of the Get method to
Nothing (null in C#).