bonjour a tous, voila je cherche a masquer un bouton de type System.Web.UI.HtmlControls.HtmlButton

cependant lorsque j'ajoute un attribute "visibility" la page html me retourne un erreur :
Exception Details: System.NullReferenceException: Object reference not set to an instance of an object.
quelqu'un pourrait-il m'eclairer sur ce point