/// <summary>
 /// Discards the state thereby preventing an automatic restore during dispose.
 /// </summary>
 public void DiscardState()
 {
     ControlState.DiscardViewState(this);
     StateDiscarded = true;
 }