This control inherits properties and behavior from Ribbon Button control. The script that is pre-generated in the designer for the “ OnClick ” event has the same functionality with the Save & Close button, with the only difference that it first validates the form by calling the form.Validate method, which checks for missing values in all the controls marked with the “Required” property, and it also raises OnValidate event of the form in order to execute all custom validation javascript code.