protected override object SaveViewState() { ViewState["CurrentPickerMode"] = this.CurrentPickerMode; var location = this.Location; if ( location != null ) { ViewState["LocationId"] = location.Id; } return base.SaveViewState(); }