public void Cancel() { // It is possible for Cancel() to be called numerous times during the same postback so we just remember the desired state // Pass the magic cancel string as the result _closeString = "$$CANCEL$$"; _shouldClose = true; }