Use the Hide method to closes the popup control. Use the CloseOnClick property to specify how the control is closed.